3. Document Head

An HTML document’s head element contains important information about the page, links to external resources such as style sheets, and embedded styles, when necessary. Plus, what you include in your page’s head impacts search engine optimization (SEO).

Each of the elements described in this chapter may appear only in the head, except style, which has an exception in HTML5.

Note

The script element may also appear in the head; however, it’s best to include it at the end of your page just before the </body> end tag whenever possible.

base

Description

The ...

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.