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

2.0 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf08802 Uncomment HTML 0 HTML sem comentário

Description

Comentar é uma maneira de deixar comentários para outros desenvolvedores em seu código sem afetar a saída resultante que é exibida para o usuário final. Comentar também é uma maneira conveniente de tornar o código inativo sem ter que excluí-lo completamente. Comentários em HTML começam com <!-- e terminam com um -->

Instructions

Descomente seus elementos h1 , h2 e p .

Tests

tests:
  - text: 'Torne seu elemento <code>h1</code> visível em sua página, descomentando-o.'
    testString: 'assert($("h1").length > 0, "Make your <code>h1</code> element visible on your page by uncommenting it.");'
  - text: 'Torne seu elemento <code>h2</code> visível em sua página, descomentando-o.'
    testString: 'assert($("h2").length > 0, "Make your <code>h2</code> element visible on your page by uncommenting it.");'
  - text: 'Torne seu elemento <code>p</code> visível em sua página, descomentando-o.'
    testString: 'assert($("p").length > 0, "Make your <code>p</code> element visible on your page by uncommenting it.");'
  - text: 'Certifique-se de excluir todas as tags de comentário à direita, ou seja, <code>--&gt;</code> .'
    testString: 'assert(!/[^fc]-->/gi.test(code.replace(/ *<!--[^fc]*\n/g,"")), "Be sure to delete all trailing comment tags&#44; i.e. <code>--&#62;</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