3.2. Logical Character Styles

Rather than specifying the specific font to be used, some authors prefer to describe the type of text being rendered and let the browser decide the details of the resultant look. That is the purpose of logical character style elements. These elements can also provide additional information to automatic document indexers, but in the absence of style sheets, they give the author less explicit control over the look of the document. All of these elements require start and end tags, can be nested to compose styles, and can be combined with the physical character style tags.

HTML Element: <EM> ... </EM>
Attributes: None

EM specifies that the browser emphasize the enclosed text. EM is rendered in italics by most browsers. ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.