freecoding.school100% FREE · NO SIGNUP
Markup CityISSUE #28 of 39

the head · meta · title · links

Tagg the BuilderVSThe Unclosed Tag
Tagg the Builder saysThe <head> holds everything about the page that is not shown: charset, viewport, title, links, and meta tags.

The head is the page's control panel. Beyond <title>, it carries <meta charset> (encoding), the viewport meta (mobile sizing), <link> tags (stylesheets, icons), and <meta name="description"> (search snippet).

Order matters a little: put charset first so the browser decodes the rest correctly. Nothing in the head paints to the page — it configures how the body is interpreted and presented.

Power-ups you unlock

The Unclosed Tag attacks — common mistakes

Boss battleAdd a <meta name="description"> and a viewport meta to the head, then a <link rel="icon">. None of it shows on the page — that is the point.

Example code

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta name="description" content="a page about the html head">
  <title>the head</title>
</head>
<body style="background:#06040d;color:#e6e0ff"><h1>the head is invisible</h1></body>
</html>
▶ Open the interactive comic issue
‹ File Paths · Relative · Absolute · RootLayout · The Structural Skeleton ›