Document Structure

HTML <head> element

Container for document metadata, normally including the title. Metadata is not the primary visible page content. Include a meaningful title, early UTF-8 declaration and responsive viewport metadata where appropriate. Some metadata and resource links are conditionally permitted outside the head. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<head>…</head>

Return Value

HTMLHeadElement

Content model: Metadata content; normally exactly one title, at most one base.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>Reading notes</title>  </head>  <body>    <h1>Reading notes</h1>    <p>Chapter one is finished.</p>  </body></html>
HTML Reference