1.8 KiB
1.8 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aedf08801 | Inform with the Paragraph Element | 0 | Передайте информацию с помощью элемента "параграф" |
Описание
p
. p
- это сокращение от слова «paragraph» (параграф). Вы можете создать параграф с этим элементом следующим образом: <p>I'm a p tag!</p>
Инструкции
p
элемент под вашим элементом h2
с текстом «Hello Paragraph». Тесты
tests:
- text: Создайте элемент <code>p</code> .
testString: 'assert(($("p").length > 0), "Create a <code>p</code> element.");'
- text: Ваш элемент <code>p</code> должен иметь текст «Hello Paragraph».
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your <code>p</code> element should have the text "Hello Paragraph".");'
- text: 'Убедитесь, что ваш элемент <code>p</code> имеет конечный тег.'
testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/<p/g).length, "Make sure your <code>p</code> element has a closing tag.");'
Исходной код
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
Решение
// solution required