How to comment out in HTML

Cemment out your h1 element and your p element, but not your h2 element.
i have done it but keep telling me is not correct

Please provide a link to the problem and the exact code you’ve tried. In the future, the Get Help -> Ask for Help button will do that for you.

this is what i have done so far.

<!--<h1></h1>--><h2>`Preformatted text`
1 Like

that’s the code that I have entered so far

Which challenge is this? We don’t have them memorized - please provide a link.

And show exactly all the code that you are submitting.

HTML comment out issues

I asked for a link to the challenge. You provided a link a thread that has the link. OK…

I still need to see the exact code you are submitting. If this is the exact code:

<!--<h1></h1>--><h2>`Preformatted text`

Then it is failing because you didn’t follow the instructions.

Hit the Reset All Code button and start again. You should not be removing any of the HTML elements.

i just did that so what is the next thing for me to do

how do i link the page to this place

this is the link. thank you.

You were tasked with commenting out the h1 element and the p element.
While you did comment out the h1 element you also deleted the text that was there. You should not have done that.

Follow the instructions and just comment out each of the two elements.

On a side note, in the future use the Ask For Help button to open a topic. It will place it in the correct forum and have your code as you’ve written it.

Since you seem to be having trouble with this, you started with this:

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

And you were told to:

Comment out your h1 element and your p element, but not your h2 element.

So, you were not told to remove or replace anything. Somehow you ended up with this:

<!--<h1></h1>--><h2>`Preformatted text`

Again, I suggest that you hit Reset All Code and start over.

As a hint, do not delete or replace anything. I solved this by adding 7 characters - 3 in one spot and 4 in another.

type your text for h3 here

Commenting begins with the text < ! - - (minus the spacing)
and ends with - - >

In your lesson, the entire page of code is commented out because it starts with < ! - -
and then doesn’t end until after the end of your code which is a < p > paragraph.

Here is an example of commenting:

Hopefully understanding how commenting works will help you solve this problem.

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