Which of the following Property controls the display of small caps?

font-size
font-variant
font-style
font-weight

The correct answer is C. font-variant.

The font-variant property is used to specify the variant of a font. The small-caps variant is a font variant in which all uppercase letters are rendered as small capitals.

The font-size property is used to specify the size of a font. The font-style property is used to specify the style of a font, such as italic or bold. The font-weight property is used to specify the weight of a font, such as light or bold.

Here is an example of how to use the font-variant property to display text in small caps:

css
p {
font-variant: small-caps;
}

This will cause all uppercase letters in the paragraph to be rendered as small capitals.

Exit mobile version