I cant understad

Tell us what’s happening:

Your code so far

<!--Hello World</h1>


<!--Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.-->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36.

Challenge: Comment out HTML

Link to the challenge:

To comment out HTML code you need to wrap the code with <!-- -->
For example: <!--<h1>This h1 is commented out</h1>-->
To uncomment the code you need to remove <!-- -->
For example: <h1>This h1 is NOT commented</h1>
Basically if you comment a piece of you it means that the code won’t get executed.

The challenge asks you to comment out your h1 and p tags. I suggest you to reset the code and NOT try to comment codes inside commented codes like this:

<!--<h1>Don't do this</h1>
<!--<p>Don't do this</p>-->


Everything between <!-- and --> is commented out, not visible in the browser.
The assignment starts with every commented out. The <!-- is before the <h1> and the --> after the </p>.

In your code sample you seem to have removed the opening h1 tag and the opening and closing p tags. According to the assignment everything except the h2-element should be commented out.

This means that the h1-element (tags and text) should be between a <!-- and a --> and that the p-element (tags and text) should be between a <!-- and a -->.
You should not replace the tags with <!-- or -->.

I hope this helps. This is as far as I could go without giving the actual solution.

1 Like