--- id: bad87fee1348bd9aecf08801 title: Introduction to HTML5 Elements challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/c4Ep9Am' --- ## Description
HTML5 introduces more descriptive HTML tags. These include header, footer, nav, video, article, section and others. These tags make your HTML easier to read, and also help with Search Engine Optimization (SEO) and accessibility. The main HTML5 tag helps search engines and other developers find the main content of your page. Note
Many of the new HTML5 tags and their benefits are covered in the Applied Accessibility section.
## Instructions
Create a second p element after the existing p element with the following kitty ipsum text: Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. Wrap the paragraphs with an opening and closing main tag.
## Tests
```yml tests: - text: You need 2 p elements with Kitty Ipsum text. testString: assert($("p").length > 1, 'You need 2 p elements with Kitty Ipsum text.'); - 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 elements has a closing tag.'); - text: Your 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()), 'Your p element should contain the first few words of the provided additional kitty ipsum text.'); - text: Your code should have one main element. testString: assert($('main').length === 1, 'Your code should have one main element.'); - text: The main element should have two paragraph elements as children. testString: assert($("main").children("p").length === 2, 'The main element should have two paragraph elements as children.'); - text: The opening main tag should come before the first paragraph tag. testString: assert(code.match(/

\s*?

/g), 'The opening main tag should come before the first paragraph tag.'); - text: The closing main tag should come after the second closing paragraph tag. 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 ```