Menu
Document Structure & Metadata

<head> Section

Holds metadata, title, links to CSS, and scripts.

1What Goes in <head>

The <head> contains meta information about the document — it never renders content directly. Put your title, charset, viewport, stylesheets, and SEO meta here.

Example Code
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Page Title</title>
  <link rel="stylesheet" href="/styles.css" />
  <script src="/app.js" defer></script>
</head>

Finished reading?

Mark this topic as complete to track progress.