--- id: 587d774e367417b2b2512aa0 title: Wrap Content in the article Element challengeType: 0 videoUrl: 'https://scrimba.com/c/cPp79S3' forumTopicId: 301029 localeTitle: 使用 article 元素包裹文章内容 --- ## Description
article是另一个具有语义化特性的 HTML5 新标签。article是一个分段标签,用于呈现独立及完整的内容。这个标签适用于博客入口、论坛帖子或者新闻文章。 有些技巧可以用来判断内容是否独立,像是如果内容脱离了上下文,是否仍然有意义?类似地,对于 RSS 提要中的文本,它是否有意义? 请牢记,使用辅助设备的用户依赖组织良好的、语义化的标签来获取页面中的信息。 请注意sectiondiv的区别:
section也是一个 HTML5 新标签,与article标签的语义含义略有不同。article用于独立的、完整的内容,而section用于对与主题相关的内容进行分组。它们可以根据需要嵌套着使用。举个例子:如果一本书是一个article的话,那么每个章节就是section。当内容组之间没有联系时,可以使用div。 ```html
- groups content
- groups related content
- groups independent, self-contained content ```
## Instructions
Camper Cat 打算使用article标签来呈现他的博客页面里的帖子,但是他忘记在顶部的帖子上使用它。请使用article标签来代替div标签。
## Tests
```yml tests: - text: '你的代码中应该有 3 个article标签。' testString: assert($('article').length == 3); - text: '你的代码不应包含div标签。' testString: assert($('div').length == 0); ```
## Challenge Seed
```html

Deep Thoughts with Master Camper Cat

The Garfield Files: Lasagna as Training Fuel?

The internet is littered with varying opinions on nutritional paradigms, from catnip paleo to hairball cleanses. But let's turn our attention to an often overlooked fitness fuel, and examine the protein-carb-NOM trifecta that is lasagna...

Defeating your Foe: the Red Dot is Ours!

Felines the world over have been waging war on the most persistent of foes. This red nemesis combines both cunning stealth and lightning speed. But chin up, fellow fighters, our time for victory may soon be near...

Is Chuck Norris a Cat Person?

Chuck Norris is widely regarded as the premier martial artist on the planet, and it's a complete coincidence anyone who disagrees with this fact mysteriously disappears soon after. But the real question is, is he a cat person?...

```
## Solution
```html // solution required ```