5. Text

On the Web, content is king, and in most cases your content is text.

This chapter focuses on the elements used to mark up your carefully crafted prose, links, code samples, references, and more in order to enrich the semantics of your content. That, in turn, pleases both screen readers and search engines, and it affords you presentational control over your content via CSS.

As you’ll see, there are a lot of elements covered in this chapter. You’ll likely use only a handful regularly—such as a, p, em, and strong—but I really encourage you to become familiar with the others. You may find there are some elements you should have been using all along. cite is just one example of a hidden gem. And if you’re working on an HTML5 site, be sure ...

Get The HTML Pocket 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.