--- id: bad87fee1348bd9aecf08801 title: Introduction to HTML5 Elements challengeType: 0 videoUrl: '' localeTitle: HTML5元素简介 --- ## Description
HTML5引入了更具描述性的HTML标记。这些包括headerfooternavvideoarticlesection和其他。这些标签使您的HTML更易于阅读,并且还有助于搜索引擎优化(SEO)和可访问性。 main HTML5标记可帮助搜索引擎和其他开发人员找到您网页的主要内容。 注意
“应用可访问性”部分介绍了许多新的HTML5标记及其优点。
## Instructions
创建第二个p现有的后件p具有以下的小猫存有文本元素: Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.用开头和关闭main标签包装段落。
## Tests
```yml tests: - text: 使用Kitty Ipsum文本需要2个p元素。 testString: 'assert($("p").length > 1, "You need 2 p elements with Kitty Ipsum text.");' - text: 确保每个p元素都有一个结束标记。 testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/

p elements has a closing tag.");' - text: 你的p元素应该包含所提供的额外kitty ipsum text的前几个单词。 testString: 'assert.isTrue((/Purr\s+jump\s+eat/gi).test($("p").text()), "Your p element should contain the first few words of the provided additional kitty ipsum text.");' - text: 您的代码应该有一个main元素。 testString: 'assert($("main").length === 1, "Your code should have one main element.");' - text: main元素应该有两个段落元素作为子元素。 testString: 'assert($("main").children("p").length === 2, "The main element should have two paragraph elements as children.");' - text: 开头main标记应位于第一个段落标记之前。 testString: 'assert(code.match(/

\s*?

/g), "The opening main tag should come before the first paragraph tag.");' - text: 结束main标记应该在第二个结束段标记之后。 testString: 'assert(code.match(/<\/p>\s*?<\/main>/g), "The closing main tag should come after the second closing paragraph tag.");' ```

## Challenge Seed
```html

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

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