freeCodeCamp Challenge Guide: Comment out HTML

Comment out HTML


Problem Explanation

Comment syntax is the same of every other HTML element:

Example:

<!-- code -->
subElement Description
<!-- Opening tag
code Commented text
--> Closing tag

If you want to comment just some elements in the code you want to wrap them in a comment element - create an opening tag before them and a closing tag right after.

Have fun!

14 Likes

how to type comment here to get an answer

4 Likes

I’m having a hard time closing a comment while not changing the order of h1, h2, and P. Can you help me with this problem?

9 Likes

I am right there with you on this one.

I have tried multiple ways and still can’t get approval for:

Leave your h2 element uncommented so that it is visible on your page.

and

Be sure to close each of your comments with -->.

2 Likes

This one did not work:

CatPhotoApp

2 Likes

It works now, @Mmayzn let me know if you are having any problems still.

1 Like

CatPhotoApp

Hello Paragraph

--> Comment out your p element so that it is not visible on your page. i stack can u help me pls thnks
2 Likes

Hey can someone help me please i been on this for a week now.
Comment out your p element so that it is not visible on your page.

2 Likes

I’m doing everything it says but yet it still says its out of order

3 Likes

just type <!-- this infront of 6 and ur gud to go

I’m having a difficult task to leave this commented

1 Like

1-
4-

text


5-

Did you find a solution to this problem? I’ve been stuck here since last night.

Like this:

CatPhotoApp

3 Likes

Like so:

put both h1 and p inside the comments and leave h2 so that only h2 is visible.Try that.

7 Likes