2018-10-10 22:03:03 +00:00
---
id: bad87fee1348bd9aedf08801
title: Inform with the Paragraph Element
challengeType: 0
2019-08-28 13:26:13 +00:00
videoUrl: https://scrimba.com/p/pVMPUv/ceZ7DtN
forumTopicId: 18202
2019-04-25 06:46:16 +00:00
localeTitle: Передайте информацию с помощью элемента "параграф"
2018-10-10 22:03:03 +00:00
---
2019-08-28 13:26:13 +00:00
## Description
< section id = 'description' >
Для создания текста параграфа веб-сайта лучше использовать элемент < code > p< / code > . < code > p< / code > - это сокращение от слова «paragraph» (параграф). Вы можете создать параграф с этим элементом следующим образом: < code > < p> I' m a p tag!< /p> < / code >
< / section >
2018-10-10 22:03:03 +00:00
2019-08-28 13:26:13 +00:00
## Instructions
< section id = 'instructions' >
Создайте < code > p< / code > элемент под вашим элементом < code > h2< / code > с текстом «Hello Paragraph».
< / section >
2018-10-10 22:03:03 +00:00
2019-08-28 13:26:13 +00:00
## Tests
2018-10-10 22:03:03 +00:00
< section id = 'tests' >
```yml
tests:
2019-08-28 13:26:13 +00:00
- text: Your code should have a valid < code > p</ code > element.
testString: assert(($("p").length > 0));
- text: Your < code > p</ code > element should have the text "Hello Paragraph".
testString: assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()));
- text: Make sure your < code > p</ code > element has a closing tag.
testString: assert(code.match(/< \/p > /g) && code.match(/< \/p > /g).length === code.match(/< p / g ). length );
2018-10-10 22:03:03 +00:00
```
< / section >
2019-08-28 13:26:13 +00:00
## Challenge Seed
2018-10-10 22:03:03 +00:00
< section id = 'challengeSeed' >
< div id = 'html-seed' >
```html
< h1 > Hello World< / h1 >
< h2 > CatPhotoApp< / h2 >
```
< / div >
< / section >
2019-08-28 13:26:13 +00:00
## Solution
2018-10-10 22:03:03 +00:00
< section id = 'solution' >
2019-08-28 13:26:13 +00:00
```html
< h1 > Hello World< / h1 >
< h2 > CatPhotoApp< / h2 >
< p > Hello Paragraph< / p >
2018-10-10 22:03:03 +00:00
```
2019-08-28 13:26:13 +00:00
2018-10-10 22:03:03 +00:00
< / section >