topskill.dev
CoursesTracks
0
All courses/Introduction to HTMLThe Head Element and Page Title
Head and Metadata
1 / 4
← Introduction to HTML
○What Is HTML? See Tags in Action○Build the Meridian Signal○Complete HTML5 Page Structure○Build a Complete HTML5 Page✦Module Quiz
○Heading Hierarchy: H1 and H2○Extend the Signal Brief○Paragraphs and Inline Tags○Write Meridian's Survey Notes○List Types: Steps, Items, and Terms○Build a Crew Member Loadout○Challenge: Transmit a Rescue Signal✦Module Quiz
○Hyperlinks○Links between project files○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: Join the Meridian Relay○Build a Night-Shift Check-In○Input Types: Build a Mission Profile○Record Beacon Maintenance○Choice Controls: Select Training Modes○Plan a Supply Pickup○Response Controls: Send a Mission Reply○Build a Rescue Dispatch Report○Form validation and submission○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○A keyboard-friendly page✦Module Quiz
○Project 3 - Resume Semantic Structure○Project 3 - Resume Links and Actions✦Module Quiz

The Head Element and Page Title

Your visiting card used a simple page title; now give a new walking-club page the hidden details a browser and search tool need. Set up its <head> so the tab has a useful title and phones display the page at device width.

A walking-club page with a proper <head> containing a supplied charset and your title, viewport, and description. The visible body is already in index.html; edit only its head information.

The browser's setup area

<body> holds the content visitors see. <head> holds instructions and page information for the browser, search tools, and linked files.

html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Sunday Birdwatch — Lakeside Nature Club</title>
</head>
<body>
    <!-- Visible content here -->
</body>
</html>

Put <meta charset="UTF-8" /> near the start of <head>; making it the first element is a useful habit. The encoding declaration needs to appear early so the browser can decode the document correctly. The viewport tag tells a phone browser to use the device width instead of shrinking a desktop-sized page.

Name the tab and describe the page

<title> appears in the browser tab, history, bookmarks, and often search results. Keep it short, specific, and unique. A description meta tag gives search engines a concise summary they may show beneath that title.

html
<title>Sunday Birdwatch — Lakeside Nature Club</title>
<meta name="description" content="A Sunday birdwatching walk around the lake, with a meeting place and equipment notes." />

A <link> can connect a real stylesheet when you have one; this page does not need CSS to complete its head.

Check your page

Edit index.html, then Run. The visible heading should stay unchanged: head metadata does not add content to the body. This embedded preview does not rename the course’s browser tab. Inspect your <head> and Submit to check the title and meta tags; opening the document on its own would show its title in a tab.

Your Task

  1. In <head>, set a <title> that names the City Walking Club river walk.
  2. Add a viewport meta tag with content="width=device-width, initial-scale=1.0".
  3. Add a description meta tag with a sentence about the river walk (at least 20 characters).

The walking-club page now carries useful browser and search information before visitors read its first heading.

Hint 1
1 / 4
HINT 1

The <head> is not displayed on the page — it holds instructions for the browser.

HINT 2
<title> sets the text in the browser tab and is used by search engines.
HINT 3

Put <meta charset="UTF-8"> near the start of <head>; first is a useful convention.

HINT 4

You can link external resources (stylesheets, fonts) and add scripts inside <head>.

Files
  • ⋄index.html
Loading editor…