p
elementos p
são o elemento preferido para o texto do parágrafo nos sites. p
é a abreviatura de "parágrafo". Você pode criar um elemento de parágrafo como este: <p>I'm ap tag!</p>
p
abaixo do seu elemento h2
e dê a ele o texto "Hello Paragraph". p
.
testString: 'assert(($("p").length > 0), "Create a p
element.");'
- text: Seu elemento p
deve ter o texto "Hello Paragraph".
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your p
element should have the text "Hello Paragraph".");'
- text: Certifique-se de que seu elemento p
tenha uma tag de fechamento.
testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/p element has a closing tag.");' ```