CSS Font and Text Properties with Examples

In the code for this page, replace the question marks in the h3 tags to indicate the correct CSS property to achieve the described effect.

Also, for each .example add a property and value to the style attribute to complete the demonstration page.

Font Properties

font-family

Specifies the font for text. Example: "Times New Roman", serif

This is example text.

font-?

Specifies the font size of text. Example: 20px

This is example text.

font-?

Specifies the weight of a font. Example: bold

This is example text.

font-?

Specifies the style of the font, such as italic. Example: italic

This is example text.

font-?

Specifies whether or not a text should be displayed in a small-caps font. Example: small-caps

This is example text.


Text Properties

text-?

Specifies the horizontal alignment of text. Example: center

This is example text.

text-?

Specifies the decoration added to text. Example: underline

This is example text.

text-?

Controls the capitalization of text. Example: uppercase

This is example text.

text-?

Specifies the indentation of the first line in a text block. Example: 20px

This is example text.
Notice the indentation at the beginning of this paragraph.
Also take note that it does not affect the rest of the text.

line-?

Specifies the height of a line. Example: 1.5

This is example text.
It demonstrates the line-height property.
Notice the spacing between the lines of this text.