Meta Tags
Everything in this chapter lives inside <head> (Fundamentals Chapter 1) and is invisible on the page itself — but each tag here has real, visible consequences in search results, social media previews, and mobile rendering.
The Essential SEO Meta Tags
<title> (already covered in Fundamentals Chapter 1) is what search engines typically show as the clickable headline; the description meta tag is typically shown as the snippet text beneath it — though search engines sometimes substitute their own extracted text if they judge it more relevant to a specific search.
The viewport Tag — Required for Any Responsive Site
Without this tag, mobile browsers render the page at a fixed desktop-sized virtual width and zoom out to fit it on screen — every bit of CSS responsive design relies on this tag being present to actually work as intended on a real phone. width=device-width matches the page's width to the actual device; initial-scale=1 sets the starting zoom level to 100%.
Open Graph — Controlling Facebook/LinkedIn Link Previews
Without these tags, a link shared on Facebook, LinkedIn, or Discord often shows a generic, unhelpful preview — or guesses at an image/description from the raw page content, sometimes incorrectly. Open Graph tags give explicit control over exactly what appears.
Twitter Cards — A Parallel System for X/Twitter
twitter:card value, since X's crawler checks for Open Graph equivalents when its own specific tags aren't present.
Quick Reference of Common Meta Tags
Chapter 5 Quick Reference
- title + meta description — what typically shows in search results; keep both unique per page
- meta viewport — required for responsive CSS to actually function on mobile devices
- Open Graph (og:title/description/image/url) — controls Facebook/LinkedIn/Discord link previews
- Twitter Cards (twitter:card/title/description/image) — parallel system for X/Twitter, falls back to Open Graph if missing
- meta charset — should be the very first tag inside <head>
- meta robots / link canonical — fine-grained control over search engine indexing behaviour
- Next chapter: accessibility (a11y) fundamentals — ARIA roles, landmarks, alt text best practices