liveBook · Manning

Head element

As explained in Web Design Playground

An HTML element that contains metadata and other non-visible information about a document, such as title and style information.

Think of the <head> as a page’s backstage area. It holds information the browser needs—such as the character set, page title, and CSS—while visible text and HTML belong in <body>. section 2.2 section 2.24

A basic head section usually brings together:

Listing 2.1 A Basic HTML Structure for Starting Any Web Page Project
<!DOCTYPE html>                   #1
<html lang="en">                  #2
    <head>                        #3
        <meta charset="utf-8">    #4
        <title></title>           #5
        <style></style>           #6
    </head>                       #3
    <body>                        #7
    </body>                       #7
</html>                           #2

Explore a complete starter structure showing where <head> sits between <html> and <body>, with metadata, title, and style elements inside it. section 2.2

A tiny backstage

In a full page, write <head>, place the meta, title, and style elements inside it, then close </head> before opening <body>. In the Web Design Playground, these surrounding elements may be added behind the scenes while you work in the editors. section 2.2

How Web Design Playground covers it

How deep it goes
Defines the element’s position and common contents, but stops short of deeper browser processing details.
Examples
Uses a starter HTML listing containing meta charset, title, style, head, and body elements.
What you can do after
Build a basic HTML page structure and place metadata, a title, and CSS inside its head element.
How it connects
Connects HTML structure with the meta element, title element, style element, CSS, body element, and HTML5.

Also explained in

Compare how 2 books explain head element →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground. The section links point to the parts of the book it draws on.