Sets whether the text of the object is in small capital letters.


{ font-variant: sVariant }

Possible values


String that specifies or receives one of the following values:


Default. Font is normal.


Font is in small capital letters.

This property has a default value of normal. It is inherited.


The following example uses the font-variant property to change the font to small capitals. This example uses the P element as a selector in an embedded (global) style sheet to set the font style to small-caps in all paragraphs:

<p style="font-variant:small-caps">

This example uses inline scripting to set the font style to small-caps when an onmousedown event occurs:

<div onmousedown="'small-caps'">

Standards information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Ee371242.xtlink_newWindow(en-us,Expression.40).png.

Applies to

a, abbr, acronym, b, bdo, big, blockquote, body, button, caption, center, cite, code, custom, dd, defaults, del, dfn, div, dl, dt, em, embed, fieldset, font, form, frameset, frame, hn, i, iframe, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, li, object, ol, p, q, s, span, sub, table, td, th, tt, u, ul, var, xmp

See also



Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions