Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>The title of the document </title> <style> .all-small-caps { font-variant-caps: all-small-caps; font-style: italic; } .small-caps { font-variant-caps: small-caps; font-style: italic; } .normal { font-variant-caps: normal; font-style: italic; } </style> </head> <body> <h2>Font-variant-caps property example</h2> <p class="all-small-caps"> The font-variant-caps CSS property controls the use of alternate glyphs for capital letters. </p> <p class="small-caps">Small caps!</p> <p class="normal">Normal caps!</p> </body> </html>