2.3 KiB
2.3 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aedf08804 | Comment out HTML | 0 | Comente o HTML |
Description
<!--
e para finalizar um comentário, você precisa usar -->
Aqui você precisa terminar o comentário antes do seu elemento h2
começar. Instructions
h1
e seu elemento p
, mas não seu elemento h2
. Tests
tests:
- text: Comente o seu elemento <code>h1</code> para que ele não fique visível na sua página.
testString: 'assert(($("h1").length === 0), "Comment out your <code>h1</code> element so that it is not visible on your page.");'
- text: Deixe seu elemento <code>h2</code> descomentado para que fique visível na sua página.
testString: 'assert(($("h2").length > 0), "Leave your <code>h2</code> element uncommented so that it is visible on your page.");'
- text: Comente o seu elemento <code>p</code> para que ele não fique visível na sua página.
testString: 'assert(($("p").length === 0), "Comment out your <code>p</code> element so that it is not visible on your page.");'
- text: Certifique-se de fechar cada um dos seus comentários com <code>--></code> .
testString: 'assert(code.match(/[^fc]-->/g).length > 1, "Be sure to close each of your comments with <code>--></code>.");'
- text: Não mude a ordem do <code>h1</code> <code>h2</code> ou <code>p</code> no 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