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

2.3 KiB

id, title, challengeType, videoUrl, forumTopicId, localeTitle
id title challengeType videoUrl forumTopicId localeTitle
bad87fee1348bd9aedf08804 Comment out HTML 0 https://scrimba.com/p/pVMPUv/cGyGbca 16782 Комментарий HTML

Description

Помните, что для того, чтобы начать комментарий, вам нужно использовать <!-- и для завершения комментария, вам нужно использовать --> Здесь вам нужно будет закончить комментарий до того, как начнется ваш элемент h2 .

Instructions

Вы можете комментровать элементы h1 и p , но не элемент h2 .

Tests

tests:
  - text: Comment out your <code>h1</code> element so that it is not visible on your page.
    testString: assert(($("h1").length === 0));
  - text: Leave your <code>h2</code> element uncommented so that it is visible on your page.
    testString: assert(($("h2").length > 0));
  - text: Comment out your <code>p</code> element so that it is not visible on your page.
    testString: assert(($("p").length === 0));
  - text: Be sure to close each of your comments with <code>--&#62;</code>.
    testString: assert(code.match(/[^fc]-->/g).length > 1);
  - text: Do not change the order of the <code>h1</code> <code>h2</code> or <code>p</code> in the code.
    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>") );

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

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