Bold and Italics

There are three different ways to bold or italicize text in XHTML:

  1. Via CSS, using the “font-weight:bold” and “font-style:italic” styles.
  2. By using the <strong> and <em> (“emphasis”) elements.
  3. By using the <b> (“bold”) and <i> (“italics”) elements.note-bold-italic

The <strong> and <em> Elements
em-strong
We will use only CSS to bold and italicize text in this course.

Bold and Italics via CSSbold-italic

 

Advertisements