फ़ॉन्ट वैरिएंट सेट करने के लिए, font-variant गुण का उपयोग करें। फ़ॉन्ट को small-caps और normal पर सेट करें।
निम्न कोड चलाकर CSS के साथ font-variant को small-caps पर सेट करें:
<html> <head> </head> <body> <p style="font-variant:small-caps;"> This text will be rendered as small caps </p> </body> </html>