CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

Font Variant in CSS

The font-variant Property



The CSS font-variant property allows us to convert our font. Its values can be set to normalsmall-caps, and inherit.




Its syntax is:-

< style >


font-variant: normal| small-caps| initial| inherit;


< /style >


Further Explanation:-


Value Description
normal The browser displays a normal font.
small-caps The browser displays a small-caps font.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Basic

All Sections related to CSS