--- id: 587d7787367417b2b2512aa1 title: Make Screen Reader Navigation Easier with the header Landmark challengeType: 0 videoUrl: '' localeTitle: 使用标题Landmark使屏幕阅读器导航更轻松 --- ## Description
下一个添加语义含义并提高可访问性的HTML5元素是header标记。它用于为其父标记包装介绍性信息或导航链接,并且可以很好地处理在多个页面顶部重复的内容。 header分享了您在main看到的嵌入式地标功能,允许辅助技术快速导航到该内容。 注意
header适用于HTML文档的body标记。这与head元素不同, head元素包含页面标题,元信息等。
## Instructions
Camper Cat正在撰写一些关于忍者训练的精彩文章,并希望为他们的网站添加一个页面。将当前包含h1的顶部div更改为header标记。
## Tests
```yml tests: - text: 您的代码应该有一个header标记。 testString: 'assert($("header").length == 1, "Your code should have one header tag.");' - text: 您的header标记应该环绕h1 。 testString: 'assert($("header").children("h1").length == 1, "Your header tags should wrap around the h1.");' - text: 您的代码不应包含任何div标记。 testString: 'assert($("div").length == 0, "Your code should not have any div tags.");' - text: 确保您的header元素具有结束标记。 testString: 'assert(code.match(/<\/header>/g) && code.match(/<\/header>/g).length === code.match(/
/g).length, "Make sure your header element has a closing tag.");' ```
## Challenge Seed
```html

Training with Camper Cat

Stealth & Agility Training

Climb foliage quickly using a minimum spanning tree approach

No training is NP-complete without parkour

Combat Training

Dispatch multiple enemies with multithreaded tactics

Goodbye world: 5 proven ways to knock out an opponent

Weapons Training

Swords: the best tool to literally divide and conquer

Breadth-first or depth-first in multi-weapon training?

```
## Solution
```js // solution required ```