HTML Comment out

Tell us what’s happening:
I’m really struggling to comment out the h1 and p whilst leaving the h2 visible. I’ve tried multiple variations to achieve this and nothing seems to be working.

Can someone please point out what I’m doing incorrectly?

Your code so far



<!-—<h1>Hello World</h1>-—>

<h2>CatPhotoApp</h2>

<!-—<p>Hello Paragraph</p>-—>

Your browser information:

User Agent is: Mozilla/5.0 (iPad; CPU OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1.

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

You just have the wrong characters in your comments. You have -— instead of --. I’m not sure if you can see that the second symbol in yours is a long dash instead of a -. Are you maybe using a mobile keyboard with autocorrect or typing this into a word processor and pasting it into FCC?

1 Like

Wow, it worked! It hadn’t noticed that.
Thank you :sparkles:

1 Like

Thank you, both, for the question and solution - this was driving me nuts!
:blush::+1:

1 Like