--- id: bad87fee1348bd9aedf08801 challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/ceZ7DtN' forumTopicId: 18202 localeTitle: 用 p 元素代表段落 --- ## Description
pparagraph的缩写,通常用来创建一个段落,就和你写作文一样。 你可以像这样创建一个段落: <p>I'm a p tag!</p>
## Instructions
h2元素下面新增一个p元素,元素内容是:Hello Paragraph
## Tests
```yml tests: - text: '创建一个p元素。' testString: assert(($("p").length > 0)); - text: 'p元素的内容应为:Hello Paragraph。' testString: assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text())); - text: 'p元素应该有结束标记。' testString: assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/

## Challenge Seed

```html

Hello World

CatPhotoApp

```
## Solution