Help in Commenting Out

Tell us what’s happening:
I have been trying to run test on Commenting Out but i dont seem to be getting it right, please help

Your code so far



<h1>Hello World</h1>
<!--Hello World-->
<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>
<!--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; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Comment out HTML

Link to the challenge:

Hey @Russellchuks!
Welcome to FCC forum!

And you have commented wrong.
It should be like this:

<!----<p>Some Text here....</p>----->

Please make this changes.

how do i comment out on h1 but not on h2

Hi @Russellchuks,

in HTML anything enclosed inside <!-- --> will be treated as a comment:

<!-- My awesome comment -->

So a more concrete example:
Assuming this is my starting point:

<h1>Hello</h1>
<h2>Hi</h2>

I can comment the h2 so it’s no longer visible on the page, but still visible in the source code for others to see:

<h1>Hello</h1>
<!-- Remove h2 from page by commentig it -->
<!-- <h2>Hi</h2> -->

Hope it helps :sparkles:

1 Like