small-caps font


font-variant: small-caps;

Browser
Internet Explorer Firefox Opera

The font-variant property specifies a small-caps font.


p {
font-variant: small-caps;
}


Property Value Explanation
font-variant small-caps small-caps font
normal normal font (default)

When the small-caps value is specified, the lowercase letters is displayed in small uppercase.


Example

<html>
<head>
<title>TAG index</title>

<style type="text/css">

#example { font-variant: small-caps; }

</style>

</head>
<body>

<p>TAG index html TAG</p>
<p id="example">TAG index html TAG</p>

</body>
</html>
Output

TAG index html TAG

TAG index html TAG