Interactive online courses HTML Academy
2026-03-09 14:10 Diff

You can specify the font face using the font-style property. Here are its basic values:

  1. normal — Normal font face;
  2. italic — Italics font face.
  3. oblique — Slanted font face.

One question that you may have is: what is the difference between italics and slanted text?

If you set the value to italic, the browser will try to find a separate italics font face for the characters for the given font. Some fonts specify a separate set of italics characters.

If there are no separate italics characters in the font, then the browser will make the text slanted, simulating italics. This is the equivalent to specifying the value font-style: oblique for the text.

Let’s reinforce this theoretical knowledge with some practical exercises.