Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Semantic layout landmarks (header, nav, main, footer) worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<header> <h1>My Site</h1> <nav>Links</nav> </header> | A<head> is for metadata, not visible content - use <header> for the visible page header | |
| 2<footer> <p>Copyright 2024.</p> </footer> | B<main> <h2>Welcome</h2> <p>Page content here.</p> </main> | |
| 3<main> contains the unique primary content - only one <main> per page is allowed | CHTML tag names must be lowercase - <HEADER> and </HEADER> should be <header> and </header> | |
| 4<nav> groups navigation links and tells assistive technology this is the site menu | DThe page header landmark - wraps introductory content like the site title and navigation at the top | |
| 5<head><h1>Site Title</h1></head> | EThe page footer landmark - wraps closing information like copyright, legal text, and contact links | |
| 6<HEADER> <h1>Title</h1> </HEADER> | F<nav> <a href="home.html">Home</a> <a href="about.html">About</a> </nav> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<main> — The HTML5 semantic element that wraps the unique primary content of a page. There should be only one <main> per page.<header>
<h1>My Site</h1>
<nav>Links</nav>
</header><header>
<nav>
<a href="home.html">Home</a>
</nav>
</header><main>
<h2>Welcome</h2>
<p>Content here.</p>
</main><footer>
<p>Copyright 2024.</p>
</footer><header>
<h1>Title</h1>
</header>