p
elementos p
son el elemento preferido para el texto de párrafo en sitios web. p
es la abreviatura de "párrafo". Puedes crear un elemento de párrafo como este: <p>I'm ap tag!</p>
p
debajo de tu elemento h2
y dale el texto "Hola Párrafo". p
.
testString: 'assert(($("p").length > 0), "Create a p
element.");'
- text: Su elemento p
debe tener el texto "Hola párrafo".
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your p
element should have the text "Hello Paragraph".");'
- text: Asegúrese de que su elemento p
tiene una etiqueta de cierre.
testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/p element has a closing tag.");' ```