I still don't understand the comment and uncommenting tags

Tell us what’s happening:
Describe your issue in detail here.

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 (Linux; Android 11; TECNO KF7j) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36

Challenge: Uncomment HTML

Link to the challenge:

Do you have a question?

This is an opening comment tag: <!--
This is a closing comment tag: -->

Everything between them is “commented out”. That means it’s there in the code but is “invisible” the browser - it has no effect on the web page, it doesn’t get used when building the page.

<p>A is for apple.</p>
<!--
<p>B is for ball.</p>
-->
<p>C is for ball.</p>
<!-- <p>D is for doll.</p> -->
<p>E is for elephant.</p>

If you were putting that into a web page, only the A, C, and E lines would show because the other two are commented out.

Why do you comment out?

  1. To literally put comments, little notes to yourself or future programmers.
  2. To temporarily hided code while you’re working on it, like if you want to see if a bug still shows up if this code were not there.
1 Like

On top of what Kevin said, here is a link to a more long winded Explanation:

https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329

1 Like

Thank u kelvin and alless, I’m clear now

I’m still struck in uncommenting part. Can somebody help??

You simply delete these symbols:

<!--   -->

Have a nice coding!

You can open a new thread, by clicking the “get help → ask for help” button on your freeCodeCamp Tutorial, If this answer doesn’t work for you.


THIS CAN BE A LITTLE CONFUSING:

Uncommenting is the Removal of a comment.


This is an example of Commented Html:

<!--<h1>Hello World</h1> -->
or
<!-- <header> -->



This is an example of Uncommented Html:

<h1>Hello World</h1> 
or
<header> 

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.