--- id: bad87fee1348bd9aecf08801 title: Introduction to HTML5 Elements challengeType: 0 videoUrl: https://scrimba.com/p/pVMPUv/cBkZGpt7 forumTopicId: 301097 localeTitle: Введение в элементы HTML5 --- ## Description
HTML5 вводит более описательные HTML-теги. К ним относятся header , footer , nav , video , article , section и другие. Эти теги упрощают чтение вашего 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. kitty: Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. Оберните абзацы с помощью main и закрывающего main тега.
## Tests
```yml tests: - text: You need 2 p elements with Kitty Ipsum text. testString: assert($("p").length > 1); - text: Make sure each of your p elements has a closing tag. testString: assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/

p element should contain the first few words of the provided additional kitty ipsum text. testString: assert.isTrue((/Purr\s+jump\s+eat/gi).test($("p").text())); - text: Your code should have one main element. testString: assert($('main').length === 1); - text: The main element should have two paragraph elements as children. testString: assert($("main").children("p").length === 2); - text: The opening main tag should come before the first paragraph tag. testString: assert(code.match(/

\s*?

/g)); - text: The closing main tag should come after the second closing paragraph tag. testString: assert(code.match(/<\/p>\s*?<\/main>/g)); ```

## 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
```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.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

```