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

1.7 KiB

id title challengeType videoUrl forumTopicId dashedName
bad87fee1348bd9aedf08804 Comenta HTML 0 https://scrimba.com/p/pVMPUv/cGyGbca 16782 comment-out-html

--description--

Recuerda que para iniciar un comentario, necesitas usar <!-- y para terminar un comentario, necesitas usar -->

Aquí tendrás que terminar el comentario antes de que tu elemento h2 comience.

--instructions--

Comenta tu elemento h1 y tu elemento p, pero no tu elemento h2.

--hints--

Tu elemento h1 debe ser comentado para que no sea visible en la página.

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

Tu elemento h2 no debe ser comentado para que sea visible en la página.

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

Tu elemento p debe ser comentado para que no sea visible en la página.

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

Cada uno de tus comentarios debe cerrarse con -->.

assert(code.match(/[^fc]-->/g).length > 1);

No debes cambiar el orden de los elementos h1, h2 o p en el código.

assert(
  code.match(/<([a-z0-9]){1,2}>/g)[0] === '<h1>' &&
    code.match(/<([a-z0-9]){1,2}>/g)[1] === '<h2>' &&
    code.match(/<([a-z0-9]){1,2}>/g)[2] === '<p>'
);

--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> -->