Copyright © tutorialspoint.com

CSS - font-variant

previous next


Description:

The font-variant property determines the use of one of two font faces to be used in the rendering of a given element's text.

Possible Values:

Applies to:

All the HTML elements

DOM Syntax:

object.style.fontVariant="small-caps";

Example:

Here is the example using this property:

<p style="font-variant:small-caps;">
This text will be rendered as small caps
</p>

This will produce following result:

This text will be renedered as small caps

To Become more comfortable - Do Online Practice


previous next

Copyright © tutorialspoint.com