Creating Italics

Italics are often used to set off quotations, emphasized text, foreign words, magazine names and much more.

Figure 10.8. In this example, I’ve made the .emph class display in italics.

To create italics:

1.
Type font-style:.
2.
Type italic for italic text, or oblique for oblique text.
Figure 10.9. Remember that in the (X)HTML code, the word faith is marked with the emph class.

To remove italics:

Type font-style: normal.

✓ Tips

  • It used to be that the italic version of a font was created by a font designer from scratch, while ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.