CSS

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

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS font variant Property

CSS font-variant Property

 

 

The font-variant property is used to specify whether or not a text should be displayed in a small-caps font. In small-caps font, all lowercase letters are converted to uppercase letters but they appear in smaller font sizes than the original uppercase letters in the text.

 

Default Value:-

 

Its default value is normal.

 

Syntax:-

 

Its syntax is:- font-variant: normal | small-caps | initial | inherit;

 

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 Properties

All Sections related to CSS