• in
InterCourses
CoursesBlogs
← Introduction to HTML
○What Is HTML? See Tags in Action○Exercise: Build the Meridian Signal○Complete HTML5 Page Structure: See It in Action○Exercise: Build a Complete HTML5 Page✦Module Quiz
○Heading Hierarchy Demo: H1 and H2○Exercise: Extend the Signal Brief○Paragraphs and Inline Tags Demo○Exercise: Write Meridian's Survey Notes○List Types Demo: Steps, Items, and Terms○Exercise: Build a Crew member Loadout○Challenge: Transmit a Rescue Signal✦Module Quiz
○Hyperlinks○Images○Applying Styles to HTML✦Module Quiz
○Div and Span○HTML Tables○Classes and IDs○Review: Structured Profile✦Module Quiz
○Project 1 - Visiting Card Structure○Project 1 - Visiting Card Actions✦Module Quiz
○The Head Element and Page Title●Meta Tags○HTML Entities✦Module Quiz
○Form Basics Demo: Join the Meridian Relay○Exercise: Build a Night-Shift Check-In○Input Types Demo: Build a Mission Profile○Exercise: Record Beacon Maintenance○Choice Controls Demo: Select Training Modes○Exercise: Plan a Supply Pickup○Response Controls Demo: Send a Mission Reply○Exercise: Build a Rescue Dispatch Report○Challenge: Send an Emergency Beacon✦Module Quiz
○Project 2 - Contact Us Form Structure○Project 2 - Contact Us Form Actions✦Module Quiz
○Embedding Video○Embedding Audio○Iframes✦Module Quiz
○Semantic HTML Tags○Details, Figure, and Figcaption✦Module Quiz
○Project 3 - Resume Semantic Structure○Project 3 - Resume Links and Actions✦Module Quiz
Head and Metadata

Meta Tags

Mission

The walking club is sharing its route page with new members. The page itself stays the same, but its hidden metadata decides whether a phone displays it correctly and whether a shared link has a useful title and summary. Read the head as a small briefing for browsers and services.

What you'll build

A concise reference of meta tags that handle encoding, viewport, search description, social sharing (Open Graph), author, and crawl instructions.

You already set the route page’s title, viewport, and description. Here are other metadata fields you might meet when sharing it.

The core briefing

Meta tags live inside <head> and use attributes to carry information that visitors do not see in the page body.

html
<meta name="..." content="..." />

Start every document with its character encoding, then give mobile browsers viewport instructions.

html
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

UTF-8 handles text from many languages and emoji. The viewport tag prevents many mobile browsers from beginning with a zoomed-out desktop view.

Help people find and share the route

A description gives search tools a concise page summary. An author tag records who made the document. Search engines may use the description as the text beneath a result title, so write it for a person scanning results.

html
<meta name="description" content="A relaxed river walk with meeting details, route notes, and accessibility information." />
<meta name="author" content="City Walking Club" />

Open Graph properties supply the title, description, image, and URL that many social platforms use in a shared-link preview.

html
<meta property="og:title" content="Saturday River Walk" />
<meta property="og:description" content="Meeting details and route notes for this weekend's walk." />
<meta property="og:image" content="https://example.com/river-walk.png" />
<meta property="og:url" content="https://example.com/river-walk" />

Choose crawl instructions carefully

The robots tag communicates whether search engines may index a page and follow its links. index, follow is the usual default; use noindex, nofollow only when a page should stay out of search results.

html
<meta name="robots" content="index, follow" />

You may encounter older http-equiv tags that mimic HTTP headers, such as a delayed redirect. Prefer a server redirect when you control the server.

html
<meta http-equiv="refresh" content="5; url=https://example.com" />

Checkpoint

Imagine sharing the route URL in a group chat. The Open Graph title and description are the details a platform can use for the preview; the body text has not changed. Keep the title, description, and URL about the same page so the preview does not mislead visitors.

Reference card

Meta tagPurpose
charsetCharacter encoding
viewportMobile scaling
descriptionSearch snippet
authorPage author
og:*Social media sharing
robotsSearch engine crawl instructions

The route page now has a clear hidden briefing: browsers can render it, search tools can describe it, and shared links can identify it.

Learn more

MDN’s official documentation explains the available metadata, including description-related tags used by search engines and social previews. Read MDN’s reference for the HTML meta element when you want to go further.