freeCodeCamp/curriculum/challenges/russian/01-responsive-web-design/basic-html-and-html5/inform-with-the-paragraph-e...

1.7 KiB
Raw Blame History

id title challengeType videoUrl forumTopicId localeTitle
bad87fee1348bd9aedf08801 Inform with the Paragraph Element 0 https://scrimba.com/p/pVMPUv/ceZ7DtN 18202 Передайте информацию с помощью элемента "параграф"

Description

Для создания текста параграфа веб-сайта лучше использовать элемент p. p - это сокращение от слова «paragraph» (параграф). Вы можете создать параграф с этим элементом следующим образом: <p>I'm a p tag!</p>

Instructions

Создайте p элемент под вашим элементом h2 с текстом «Hello Paragraph».

Tests

tests:
  - 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);

Challenge Seed

<h1>Hello World</h1>
<h2>CatPhotoApp</h2>

Solution

<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
<p>Hello Paragraph</p>