๐Ÿ”
๐Ÿ‘ถ Kids๐Ÿ“ Blog About Contact ๐Ÿš€ Get Started Free

CSS Fonts

CSS font properties define the font family, boldness, size, and the style of a text.

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