freeCodeCamp/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/uncomment-html.md

1.5 KiB

id title challengeType videoUrl forumTopicId dashedName
bad87fee1348bd9aedf08802 Descomenta código HTML 0 https://scrimba.com/p/pVMPUv/cBmG9T7 18329 uncomment-html

--description--

Comentar es una forma en la que puedes dejar comentarios dentro de tu código para otros desarrolladores, sin que eso afecte el resultado que se muestra al usuario final.

Comentar es también una forma conveniente de desactivar código sin tener que borrarlo por completo.

Los comentarios en HTML comienzan con <!-- y terminan con -->

--instructions--

Descomenta tus elementos h1, h2 y p.

--hints--

Tu elemento h1 debe ser visible en la página al descomentarlo.

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

Tu elemento h2 debe ser visible en la página al descomentarlo.

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

Tu elemento p debe ser visible en la página al descomentarlo.

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

Ninguna etiqueta de cierre de comentario debe ser visible en la página (por ejemplo, -->).

assert(!$('*:contains("-->")')[1]);

--seed--

--seed-contents--

<!--
<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
-->

--solutions--

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>