Tell us what’s happening:
i am having difficulty in commenting out on HTML Your code so far
<h1>Hello World</h1>
<!--CatPhotoApp-->
<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>
<!--CatPhotoApp-->.
<h2>CatPhotoApp</h2>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
In the initial code, the comment tags are being used differently that you are using them
<!--
<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>
-->
The comment tags are on the first and last lines. You need to add additional comment tags so that only your h1 and p elements are commented out.
Understood that sir, thank you.
i have three elements which are h1,h2 and p; i was asked to comment out my h1 and p. been trying my way round it all day. please help out sir
Well, you need to add a --> and a <!-- so that the comment that starts around the h1 tag does not include the h2 tag and you make a separate comment around the p tag.
<!--
<whatever you want commented>
-->
<whatever you don't want commented>
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.