Files
freeCodeCamp/curriculum/challenges/spanish/01-responsive-web-design/basic-html-and-html5/comment-out-html.spanish.md
José Miguel c0768be03e Grammar, translation an structure modifications (#33045)
Changed verbs/adjectives in 3rd grammatical person for their 2nd grammatical person equivalents, erased unnecesary commas, and adjusted shifty phrase structures.
2019-03-15 09:21:36 +01:00

2.2 KiB

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf08804 Comment out HTML 0 Comentar fuera de HTML

Description

Recuerda que para iniciar un comentario debes usar <!-- y para finalizar un comentario debes usar --> . Aquí deberás finalizar el comentario antes de que comience tu elemento h2 .

Instructions

Comenta tus elementos h1 p , pero no h2 .

Tests

tests:
  - text: Comenta tu elemento <code>h1</code> para que no se vea en tu página.
    testString: 'assert(($("h1").length === 0), "Comment out your <code>h1</code> element so that it is not visible on your page.");'
  - text: Deja tu elemento <code>h2</code> sin comentar, para que sea visible en su página.
    testString: 'assert(($("h2").length > 0), "Leave your <code>h2</code> element uncommented so that it is visible on your page.");'
  - text: Comenta tu elemento <code>p</code> para que no se vea en tu página.
    testString: 'assert(($("p").length === 0), "Comment out your <code>p</code> element so that it is not visible on your page.");'
  - text: Asegúrate de cerrar cada uno de tus comentarios con <code>--&gt;</code> .
    testString: 'assert(code.match(/[^fc]-->/g).length > 1, "Be sure to close each of your comments with <code>--&#62;</code>.");'
  - text: No cambies el orden de <code>h1</code> <code>h2</code> o <code>p</code> en el código.
    testString: '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>") , "Do not change the order of the <code>h1</code> <code>h2</code> or <code>p</code> in the code.");'

Challenge Seed

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

Solution

// solution required