The Analogy: A mailed parcel's shipping label and handling stencils
A parcel moving through a postal network carries markings that its contents never read: a shipping label and a set of handling stencils printed on the outside of the box. The teddy bear sealed inside does not know its own address. The label and the stencils exist entirely for the handlers, sorters, scanners, and drivers who route the box across the country. They sit on the surface, plainly visible to the system that moves the parcel and completely irrelevant to whoever eventually opens it. That surface layer is metadata: information about the package, printed for the machinery, not for the person the package is for.
The most important marking is the destination paired with a short contents summary that the sorting office reads to route and shelve the box. A clear line reading "Books, two kilograms, to the Fifth Street depot" lets a sorter file the parcel correctly in seconds without ever opening it. This is exactly the job a title and a description do for a document: a short, machine-read summary that a search engine or a browser tab uses to route and label the page without rendering the whole thing. The title is the name written large on the outside; the description is the one-line contents summary printed beside it.
Alongside the address sit handling stencils that instruct the equipment rather than name the goods: a "FRAGILE" stamp, a "THIS WAY UP" arrow, and, printed small in a corner, the barcode-format note that tells the scanner which symbol standard the rest of the label uses. That barcode-format note is the character encoding declaration: it tells the reading equipment which symbol set every following mark is written in, so the scanner interprets the whole label correctly. The "THIS WAY UP" arrow is the viewport hint: it does not describe the contents at all, it tells the handling equipment how the box should be presented.
Syntax & Core Structure
Meta information lives inside the head of the document, never in the body:
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A beginner's guide to semantic HTML.">
<meta name="author" content="CodeAcademix Engineering">
<title>Semantic HTML: A Beginner's Guide | CodeAcademix</title>
</head>
Best Practices for Search Engine Visibility
- Declare
charset="UTF-8"First: The encoding declaration must be the first element in the head so the browser decodes all subsequent characters accurately. - Mobile Viewport Directive: Always declare
width=device-width, initial-scale=1to prevent mobile browsers from downscaling to desktop dimensions. - Descriptive Titles: Keep titles between 45 and 55 characters to prevent truncation on Google SERP results.
- Concise Meta Descriptions: Keep descriptions between 130 and 155 characters, leading with high-intent keywords.
Exercises
- Build a head block containing valid charset, viewport, title, and description tags in standard order.
- Explain what happens on a mobile browser if the viewport meta tag is omitted.
- Audit a web page to ensure the meta description does not exceed 155 characters.