p
элементов являются предпочтительным элементом текста абзаца на веб-сайтах. p
является коротким для «абзаца». Вы можете создать элемент абзаца следующим образом: <p>I'm ap tag!</p>
p
элемент под вашим элементом h2
и дайте ему текст «Hello Paragraph». p
.
testString: 'assert(($("p").length > 0), "Create a p
element.");'
- text: Ваш элемент p
должен иметь текст «Hello Paragraph».
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your p
element should have the text "Hello Paragraph".");'
- text: 'Убедитесь, что ваш элемент p
имеет закрывающий тег.'
testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/p element has a closing tag.");' ```