1.5 KiB
1.5 KiB
id | title | localeTitle | challengeType | videoUrl |
---|---|---|---|---|
bad87fee1348bd9aedf08801 | Inform with the Paragraph Element | Informar con el elemento de párrafo | 0 |
Description
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>
Instructions
p
debajo de tu elemento h2
y dale el texto "Hola párrafo".
Tests
tests:
- text: Crea un elemento <code>p</code> .
testString: 'assert(($("p").length > 0), "Create a <code>p</code> element.");'
- text: Su elemento <code>p</code> debe tener el texto "Hola párrafo".
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your <code>p</code> element should have the text "Hello Paragraph".");'
- text: Asegúrese de que su elemento <code>p</code> tiene una etiqueta de cierre.
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.");'
Challenge Seed
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
Solution
// solution required