Café cold brewCafé cold brew980 px× 0.40Café coldbrewCoarse coffee,cold water, onenight in thefridge.390 pxexample.com/cold-brewNew tabCafé cold brewCafé cold brewCafé cold brewCoarse coffee, cold water, one nightin the fridge.cold brewexample.com › cold-brewCafé cold brewSmooth coffee, brewed cold.1<head>2 <meta charset="utf-8">3 <meta name="viewport"4 content="width=device-width">5 <title>Café cold brew</title>6 <meta name="description"7 content="Smooth coffee, brewed cold.">8 <meta property="og:title"9 content="Café cold brew">10 <meta property="og:image"11 content="https://example.com/cup.jpg">12</head>https://example.com/cold-brewCafé cold brewexample.comutf-8device-width<title>descriptionog:titleog:image
Front left: the head (metadata); front right: a search result and a share cardBack: a phone and a desktop browser, the readers that draw the pageChips: each line travelling to the reader that uses itFront left: the head of a web page, twelve lines of metadata on a card. Back: a phone and a desktop browser. Front right: a search result and the preview card a chat app builds for a link. As each line is read, a chip hops from it to the reader that uses it: the letters decode correctly, the phone lays the page out at its own width, the tab gets the title, and the search result and the share card fill in. The page area never changes because of the head: what is drawn there comes from the body.

Data about the page

  1. The <head> holds metadata: data about the page. Nothing in it is drawn in the page area. It is read by the browser, by search engines and by apps that show link previews. What readers see goes in <body>.

For the browser

For search engines

For link previews

What happens

;; step 1/9 · head
file     cold-brew.html
  <!DOCTYPE html>
  <html lang="en">
  <head> … 10 lines of metadata … </head>   (the card)
  <body> … what is drawn on the page … </body>
readers  browser · search engines · link-preview apps

The card shows only the head. A full file starts with <!DOCTYPE html> and <html lang="en">, and the <body> with the page's heading comes after </head>. Search engines decide for themselves what to show. A good title and description make it likely, not certain, that they are used.