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

1.2 KiB

id title challengeType videoUrl forumTopicId dashedName
bad87fee1348bd9aedf08801 Informa con el elemento párrafo 0 https://scrimba.com/p/pVMPUv/ceZ7DtN 18202 inform-with-the-paragraph-element

--description--

El elemento p es el elemento preferido para el texto de los párrafos en los sitios web. p es la abreviatura de "párrafo" (paragraph).

Puedes crear un elemento párrafo de esta manera:

<p>I'm a p tag!</p>

--instructions--

Crea un elemento p debajo de tu elemento h2 y dale como texto Hello Paragraph.

Nota: Por convención, todas las etiquetas HTML son escritas en minúsculas, por ejemplo <p></p> y no <P></P>.

--hints--

Tu código debe tener un elemento p válido.

assert($('p').length > 0);

Tu elemento p debe contener el texto Hello Paragraph.

assert.isTrue(/hello(\s)+paragraph/gi.test($('p').text()));

Tu elemento p debe tener una etiqueta de cierre.

assert(
  code.match(/<\/p>/g) &&
    code.match(/<\/p>/g).length === code.match(/<p/g).length
);

--seed--

--seed-contents--

<h1>Hello World</h1>
<h2>CatPhotoApp</h2>

--solutions--

<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
<p>Hello Paragraph</p>