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!

9 Likes

how to type comment here to get an answer

3 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?

11 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 -->.

4 Likes

This one did not work:

CatPhotoApp

1 Like

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

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
1 Like

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.

1 Like

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

2 Likes

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

1 Like

I’m having a difficult task to leave this commented

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.

4 Likes