2018-09-30 23:01:58 +01:00
---
id: 587d7788367417b2b2512aa3
title: Make Screen Reader Navigation Easier with the footer Landmark
challengeType: 0
videoUrl: 'https://scrimba.com/c/crVrDh8'
2019-08-05 09:17:33 -07:00
forumTopicId: 301022
2018-09-30 23:01:58 +01:00
---
## Description
<section id='description'>
Similar to <code>header</code> and <code>nav</code>, the <code>footer</code> element has a built-in landmark feature that allows assistive devices to quickly navigate to it. It's primarily used to contain copyright information or links to related documents that usually sit at the bottom of a page.
</section>
## Instructions
<section id='instructions'>
Camper Cat's training page is making good progress. Change the <code>div</code> he used to wrap his copyright information at the bottom of the page to a <code>footer</code> element.
</section>
## Tests
<section id='tests'>
```yml
2018-10-04 14:37:37 +01:00
tests:
- text: Your code should have one <code>footer</code> tag.
2019-07-24 02:42:26 -07:00
testString: assert($('footer').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);
2018-10-04 14:37:37 +01:00
- text: Your code should have an opening and closing <code>footer</code> tag.
2019-07-24 02:42:26 -07:00
testString: assert(code.match(/<footer>\s*© 2018 Camper Cat\s*<\/footer>/g));
2018-09-30 23:01:58 +01:00
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='html-seed'>
```html
<body>
<header>
<h1>Training</h1>
<nav>
<ul>
<li><a href="#stealth ">Stealth & Agility</a></li>
<li><a href="#combat ">Combat</a></li>
<li><a href="#weapons ">Weapons</a></li>
</ul>
</nav>
</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>
<div>© 2018 Camper Cat</div>
</body>
```
</div>
</section>
## Solution
<section id='solution'>
2019-04-24 09:42:46 -04:00
```html
<body>
<header>
<h1>Training</h1>
<nav>
<ul>
<li><a href="#stealth ">Stealth & Agility</a></li>
<li><a href="#combat ">Combat</a></li>
<li><a href="#weapons ">Weapons</a></li>
</ul>
</nav>
</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>
<footer>© 2018 Camper Cat</footer>
</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>