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 元素, 包括 `main`、`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.