2018-09-30 22:01:58 +00:00
---
id: 587d7787367417b2b2512aa1
title: Make Screen Reader Navigation Easier with the header Landmark
challengeType: 0
2019-01-17 21:57:01 +00:00
videoUrl: 'https://scrimba.com/c/cB76vtv'
2019-08-05 16:17:33 +00:00
forumTopicId: 301023
2021-01-13 02:31:00 +00:00
dashedName: make-screen-reader-navigation-easier-with-the-header-landmark
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
The next HTML5 element that adds semantic meaning and improves accessibility is the `header` 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.
`header` shares the embedded landmark feature you saw with `main` , allowing assistive technologies to quickly navigate to that content.
**Note:** The `header` is meant for use in the `body` tag of your HTML document. This is different than the `head` element, which contains the page's title, meta information, etc.
# --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 `div` that currently contains the `h1` to a `header` tag instead.
# --hints--
Your code should have one `header` tag.
```js
assert($('header').length == 1);
```
Your `header` tags should wrap around the `h1` .
```js
assert($('header').children('h1').length == 1);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
Your code should not have any `div` tags.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
assert($('div').length == 0);
```
Your `header` element should have a closing tag.
```js
assert(
code.match(/< \/header > /g) &&
code.match(/< \/header > /g).length === code.match(/< header > /g).length
);
```
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```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 >
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
2019-04-24 13:42:46 +00: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 22:01:58 +00:00
```