freeCodeCamp/curriculum/challenges/spanish/01-responsive-web-design/basic-html-and-html5/inform-with-the-paragraph-e...

1.5 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf08801 Inform with the Paragraph Element 0 Informar con el elemento de párrafo

Description

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>

Instructions

Crea un elemento 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 &quot;Hola párrafo&quot;.
    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