Style fontVariant Property
Style fontVariant Property
The fontVariant property is used to either set or return whether or not the font should be displayed in small capital letters. In other words, all lowercase letters will be in uppercase but have a smaller font size.
Syntax:-
Its syntax is:- object.style.fontVariant OR object.style.fontVariant = normal|small-caps|initial|inherit
Return:-
Its return is:- string having font in either normal or small capital letters
Further Explanation:-
Value | Description |
---|---|
normal | The font is normal. |
small-caps | The font is displayed in small capital letters |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |