html · level 3 · unit 7 · lesson 4
- meet it
- guess first
- your turn
- fix it
- nailed it
Tap a green word if you get lost.
meet it
Professionals run a before every .
Before a launch, professionals work through a checklist, top to bottom, so nothing slips through. Most of it is in the head: charset first, the viewport, a unique title and description, a canonical link, Open Graph tags, an icon and a theme colour.
Then the body. One <h1> and a clear outline. The hero has fetchpriority="high", the pictures further down are lazy, and every picture has alt, width and height.
Last come the extras: structured data that matches the page, widgets built from HTML, and lang and dir set right. Tick every item, and your page is ready for the world.
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pocket Garden | Plant care app</title>
<meta name="description" content="Pocket Garden reminds you when to water, feed and repot every plant you own.">
<link rel="canonical" href="https://example.com/">
<meta property="og:title" content="Pocket Garden">
<link rel="icon" href="logo.svg" type="image/svg+xml">
</head>
<body>
<h1>Pocket Garden</h1>
<img src="tree.svg" alt="A fig tree with a watering reminder" width="800" height="600" fetchpriority="high">
</body>
</html> Press show my page to see it here.
Run the checklist on every page, not only the home page.
guess first
Which item on the checklist does this page fail?
Guess before you run it. Wrong guesses are how you learn, and nothing is marked.
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pocket Garden | Plant care app</title>
<meta name="description" content="Watering reminders for every plant you own, on any phone.">
</head>
<body>
<h1>Pocket Garden</h1>
<img src="tree.svg" alt="A fig tree with a watering reminder" fetchpriority="high">
</body>
your turn
Your turn. Finish the checklist.
Three items are missing. Fill the description's content on line 6, the canonical link's rel on line 7, and lazy loading for the screenshot on line 13.
Press show my page to see it here.
- the description is 50 to 160 charactersnot checked yet
- the canonical link is in placenot checked yet
- the screenshot is lazynot checked yet
- the hero still has high prioritynot checked yet
fix it
One picture fails the checklist. Can you fix it?
Press show my page to see it here.
- every picture has alt textnot checked yet
- the screenshot's alt text describes itnot checked yet
- Go down the checklist for pictures:
alt,width,height. Which picture misses one? - The screenshot on line 4 has no
alt, so screen readers cannot describe it. - Add
alt="The Pocket Garden app on a phone"to the picture on line 4, then press run.
nailed it
your page is ready to launch. :D
- Run a checklist before every launch.
- Start with the head, then the outline, then pictures.
- Tick every item, on every page.
new words in your collection
- launch
- checklist
This lesson isn’t saved. A free account remembers every lesson you finish.