CSS Tutorial

CSS Font Variant

TGTeam GyaniPanditMay 24, 20221 min read

CSS Font Variant Property 

Well, this property helps us set the font variants for a font. Basically, we are going to set our text font to small caps, through which, all the low er case letters would be converted to upper case. But it is going to appear in a smaller text than an uppercase thing. Let’s try the property once –


As an output, the paragraph text is now going to have all uppercase font, with a smaller font size. If this is required, you can use the font-variant property.

Turn reading into skillsCertificate courses in AI, Data Science and programming.
Explore Courses