CSS Fonts
CSS font properties define the font family, boldness, size, and the style of a text.
Table of Contents
CSS font properties define the font family, boldness, size, and the style of a text.
CSS Font Families
In CSS, there are two types of font family names:
- generic family - a group of font families with a similar look (like โSerifโ or โMonospaceโ)
- font family - a specific font family (like โTimes New Romanโ or โArialโ)
Preview
CSS Font Size
The font-size property sets the size of the text.
Being able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs.
Preview
CSS Font Style
The font-style property is mostly used to specify italic text.
This property has three values:
- normal - The text is shown normally
- italic - The text is shown in italics
- oblique - The text is โleaningโ (oblique is very similar to italic, but less supported)
Preview