Browse free website templates that organized by category.
CSS font properties are used to define the font size, font family, boldness of a text and the style of a text.
The font-size property is used to control the size of fonts.
The CSS rule below is an example that shows you how to specify the size of a font.
p { font-size:24px; }
The font-family property is used to specify fonts.
The CSS rule below is an example that shows you how to specify the font of a text.
p { font-family:arial, "trebuchet ms", sans-serif; }
The font-weight property is used to specify the boldness of a font.
The CSS rule below is an example that shows you how to specify the boldness of a text.
p { font-weight:bold; }
The font-style property is used to specify wether a font should be normal, italic or oblique.
The CSS rule below is an example that shows you how to specify that the font style of a text.
p { font-style:italic; }