Hello World
Hello Paragraph
---
id: bad87fee1348bd9aecf08801
title: HTML5 元素介绍
challengeType: 0
videoUrl: 'https://scrimba.com/p/pVMPUv/cBkZGpt7'
forumTopicId: 301097
dashedName: introduction-to-html5-elements
---
# --description--
HTML5 引入了很多更具描述性的 HTML 元素,例如:`header`、`footer`、`nav`、`video`、`article`、`section` 等等。
这些元素让 HTML 更易读,同时有助于搜索引擎优化和无障碍访问。
`main` 元素让搜索引擎和开发者能很快地找到网页的主要内容。
举个例子,下面的 `main` 元素嵌套了两个子元素:
```html
Hello ParagraphHello World
\s*?
/g)); ``` `main` 的结束标签应位于第二个段落之后。 ```js assert(code.match(/<\/p>\s*?<\/main>/g)); ``` # --seed-- ## --seed-contents-- ```html
Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
``` # --solutions-- ```htmlKitty 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.