4. Text

In This Chapter

Starting a New Paragraph

Adding Author Contact Information

Creating a Figure

Specifying Time

Marking Important and Emphasized Text

Indicating a Citation or Reference

Quoting Text

Highlighting Text

Explaining Abbreviations

Defining a Term

Creating Superscripts and Subscripts

Noting Edits and Inaccurate Text

Marking Up Code

Using Preformatted Text

Specifying Fine Print

Creating a Line Break

Creating Spans

Other Elements

Unless a site is heavy on videos or photo galleries, most content on Web pages is text. This chapter explains which HTML semantics are appropriate for different types of text, especially (but not solely) for text within a sentence or phrase.

For example, the em element is specifically designed for indicating ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition 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.