--- id: bad87fee1348bd9aecf08801 title: Introduction to HTML5 Elements challengeType: 0 videoUrl: '' 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: Вам нужны 2 p элемента с текстом Китти Ipsum. 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: '' 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 ```