Commenting/uncommenting

Tell us what’s happening:
Hello all I’m new to coding and I’m stuck at commenting/uncommenting

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 (iPad; CPU OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1.

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

turn off smart punctuation in the settings, if you notice your second dash is longer - that is not a character used in html, and so the comment tag doesn’t work

use control/command + / to comment out anything in html, your test shall pass!

@IAmRC1 The purpose of the challenge is not that of using shortcuts, but rather to learn what are the characters that make up the comments.
Plus shortcuts can be different from one IDE to another.

1 Like