htmlcss

The "font-variant" property is used in CSS and certain HTML elements. This property selects a "normal" or "small-caps" face from a font family.

Values


To apply this in HTML, use:

<span style="font-variant:small-caps;">Small-caps font.</span>

That will produce: Small-caps font.


To apply this in CSS, in the "h1" element for example, use:

h1 {
    font-variant:small-caps;
}

See Also