CSS font-variant
The CSS font-variant property allows you to convert your font to all small caps. The values can be set as normal, small-caps, and inherit.
HTML
1 2 |
<p class="normal">Welcome to PHPGurukul Programming Blog</p> <p class="small">Welcome to PHPGurukul Programming Blog</p> |
CSS
1 2 3 4 5 6 |
p.normal { font-variant: normal; } p.small { font-variant: small-caps; } |
Output
Not every font supports CSS font-variant, so be sure to test before you publish.