Tell us what’s happening:
Describe your issue in detail here.
Your code so far
<!--Hello world Too abcdefghijklmnopqrstuvwxyz-->
<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>
<!--Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.-->
Your browser information:
User Agent is:
Mozilla/5.0 (Linux; Android 9; DL3PlusPro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.87 Mobile Safari/537.36
Challenge: Comment out HTML
Link to the challenge:
The text is:
Comment out your
h1 element and your
p element, but not your
There are two main reasons to use comments. The first and most obvious would be to add a “comment” in the code. For example:
<!-- space left for text 3 -->
Sometimes it’s something like that often it is to permanently document the code.
The second, more subtle reason is to “hide” some code - to make the computer not run that code. You could just delete the code, but maybe you want to leave it in there in case you need it later. For example, if I have this:
we are rendering three paragraphs. If we wanted to see what it looked like without the middle paragraph, we could do this:
<!-- <p>info B</p> -->
So, that paragraph code is still in there, but the browser will not “see” it, it is “hidden” from the browser and the user.
That is what you need to do for this challenge, following the instructions.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.