Comment out HTML - order issue

Tell us what’s happening:
I am not able to move past this portion of the testing, due to the following error:
Do not change the order of the h1 h2 or p in the code.

Your code so far


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

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/comment-out-html

Hello,

So it looks like you are actually breaking your tags with the comment code (<--h1>). Try to leave your html tags in place e.g.<h1> </h1> and place the comment code outside of that.

Hope that helps! :pineapple:

Hi, the lesson is to :Comment out your h1 element and your p element, but not your h2 element.
Everything checks out except the order.

@HappySass

@4trio19 is right. When you went to comment out the h1 and p you removed part of the h1 and p tags, the opening <.

It should read <!-- <h1>.....</h1> -->
Make sense?

  • Nao :slight_smile:
1 Like

WOW!! Thanks peeps. Clarification, the “comment out” has its own tag <> so it only saw the h2 in the order, right ?

2 Likes

yeah, basically.
it should look like 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> -->

Thank you NaoG and 4trio19. Have a great day

1 Like