Copyright © tutorialspoint.com
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.
All the HTML elements
object.style.fontVariant="small-caps"; |
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
Copyright © tutorialspoint.com