Basic HTML and HTML5 - Comment out HTML

Tell us what’s happening:

X Your p element should be commented out so that it is not visible on the page. PLEASE HELP ME TO GET RID OF THIS ONE

Your code so far

<!--
<h1>Hello World</h1><!--comment out-->

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Basic HTML and HTML5 - Comment out HTML

To comment out a block of HTML code, you need to put it between <!-- and -->
For example:

<!--
<p>This is my paragraph</p>
-->

Reset and try again.

2 Likes

Buddy here this step is telling you to put your h1 and p comment out !!

But please be aware of not to Comment your h2 tag

And to comment in Html you need

<!-- This is my comment line -->

Hope you understand !!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.