2018-09-30 23:01:58 +01:00
---
id: 587d7787367417b2b2512aa1
title: Make Screen Reader Navigation Easier with the header Landmark
challengeType: 0
2019-01-18 05:57:01 +08:00
videoUrl: 'https://scrimba.com/c/cB76vtv'
2019-08-05 09:17:33 -07:00
forumTopicId: 301023
2018-09-30 23:01:58 +01:00
---
## Description
< section id = 'description' >
2019-01-28 18:28:11 +02:00
The next HTML5 element that adds semantic meaning and improves accessibility is the < code > header< / code > tag. It's used to wrap introductory information or navigation links for its parent tag and works well around content that's repeated at the top on multiple pages.
2018-09-30 23:01:58 +01:00
< code > header< / code > shares the embedded landmark feature you saw with < code > main< / code > , allowing assistive technologies to quickly navigate to that content.
2019-03-22 22:02:12 +08:00
< strong > Note:< / strong > The < code > header< / code > is meant for use in the < code > body< / code > tag of your HTML document. This is different than the < code > head< / code > element, which contains the page's title, meta information, etc.
2018-09-30 23:01:58 +01:00
< / section >
## Instructions
< section id = 'instructions' >
Camper Cat is writing some great articles about ninja training, and wants to add a page for them to his site. Change the top < code > div< / code > that currently contains the < code > h1< / code > to a < code > header< / code > tag instead.
< / section >
## Tests
< section id = 'tests' >
```yml
2018-10-04 14:37:37 +01:00
tests:
- text: Your code should have one < code > header</ code > tag.
2019-07-24 02:42:26 -07:00
testString: assert($('header').length == 1);
2018-10-04 14:37:37 +01:00
- text: Your < code > header</ code > tags should wrap around the < code > h1</ code > .
2019-07-24 02:42:26 -07:00
testString: assert($('header').children('h1').length == 1);
2018-10-04 14:37:37 +01:00
- text: Your code should not have any < code > div</ code > tags.
2019-07-24 02:42:26 -07:00
testString: assert($('div').length == 0);
2019-11-20 06:45:19 -08:00
- text: Your < code > header</ code > element should have a closing tag.
2019-07-24 02:42:26 -07:00
testString: assert(code.match(/< \/header > /g) && code.match(/< \/header > /g).length === code.match(/< header > /g).length);
2018-09-30 23:01:58 +01:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'html-seed' >
```html
< body >
< div >
< h1 > Training with Camper Cat< / h1 >
< / div >
< main >
< section id = "stealth" >
< h2 > Stealth & Agility Training< / h2 >
< article > < h3 > Climb foliage quickly using a minimum spanning tree approach< / h3 > < / article >
< article > < h3 > No training is NP-complete without parkour< / h3 > < / article >
< / section >
< section id = "combat" >
< h2 > Combat Training< / h2 >
< article > < h3 > Dispatch multiple enemies with multithreaded tactics< / h3 > < / article >
< article > < h3 > Goodbye world: 5 proven ways to knock out an opponent< / h3 > < / article >
< / section >
< section id = "weapons" >
< h2 > Weapons Training< / h2 >
< article > < h3 > Swords: the best tool to literally divide and conquer< / h3 > < / article >
< article > < h3 > Breadth-first or depth-first in multi-weapon training?< / h3 > < / article >
< / section >
< / main >
< / body >
```
< / div >
< / section >
## Solution
< section id = 'solution' >
2019-04-24 09:42:46 -04:00
```html
< body >
< header >
< h1 > Training with Camper Cat< / h1 >
< / header >
< main >
< section id = "stealth" >
< h2 > Stealth & Agility Training< / h2 >
< article > < h3 > Climb foliage quickly using a minimum spanning tree approach< / h3 > < / article >
< article > < h3 > No training is NP-complete without parkour< / h3 > < / article >
< / section >
< section id = "combat" >
< h2 > Combat Training< / h2 >
< article > < h3 > Dispatch multiple enemies with multithreaded tactics< / h3 > < / article >
< article > < h3 > Goodbye world: 5 proven ways to knock out an opponent< / h3 > < / article >
< / section >
< section id = "weapons" >
< h2 > Weapons Training< / h2 >
< article > < h3 > Swords: the best tool to literally divide and conquer< / h3 > < / article >
< article > < h3 > Breadth-first or depth-first in multi-weapon training?< / h3 > < / article >
< / section >
< / main >
< / body >
2018-09-30 23:01:58 +01:00
```
2019-07-18 08:24:12 -07:00
2018-09-30 23:01:58 +01:00
< / section >