Head Metadata for HTMLs
Head metadata is the information in the head element that describes a page rather than displaying it. The title and meta description appear in search results, the viewport tag controls mobile layout, canonical links consolidate duplicate URLs, and Open Graph tags shape link previews. Resource hints like preload and preconnect help pages load faster.
Stage: Metadata and Quality · Part of the HTML roadmap · Last reviewed 19 November 2026
What to learn in Head Metadata
- Write a unique, accurate title and meta description for a page
- Add the viewport meta tag so mobile layout works
- Set a canonical link to avoid duplicate-content confusion
- Add Open Graph tags so shared links show a title and image
- Use preload or preconnect for a critical resource
Head Metadata interview questions
Does the meta description affect ranking?
Search engines do not use the meta description as a direct ranking factor, but they often show it as the snippet in results. A clear, accurate description can raise click-through, so write one unique for each page.
What does the canonical link do?
The rel=canonical link names the preferred URL for a page when the same content is reachable at several addresses, such as with tracking parameters. It hints to search engines which version to index and consolidates ranking signals.
Where Head Metadata fits in the HTML roadmap
Head Metadata belongs to the Metadata and Quality stage (intermediate level), which takes about 6 hours. Make it discoverable.