Command Palette

Search for a command to run...

Hectal
Phase 6: The Head, SEO and Sharing
HTML · Exercise 2 of 6 PreviousNext
Beginner

Fix a broken head

This café page has four head problems. Fix them all:

1. The page language isn't set: make it English. 2. The charset comes after the title: move it to be the first thing in the head. 3. The viewport blocks zooming: keep only width=device-width, initial-scale=1. 4. The script in the head runs before the heading exists and crashes (look at the console): make it run after the page is parsed, without moving it out of the head.

What Check tests

  1. The page language is English
  2. The charset comes before the title
  3. The viewport allows zooming
  4. The head script ran without crashing
  5. The script is still in the head

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.