0

pls explain the comment tag

<!-- -->

23rd Jun 2025, 8:44 AM
Eyram Ablordeppey
Eyram Ablordeppey - avatar
2 Respostas
+ 3
It is explained in the HTML course and honestly, there isn't much to explain about it, its name describes itself. the comment tag is used to add comments in your code. It is not executed in the code, it is purely for readbility. For example, you can add comments in parts of your code that are hard to understand, so others can understand them. Additionally, you can add comments so you will understand what parts of the code are for, helpful for your future self checking out your code. Example: <!-- The code below creates a container for the page header -->
23rd Jun 2025, 9:28 AM
Afnan Irtesum Chowdhury
Afnan Irtesum Chowdhury - avatar
+ 1
The text inside this tag will be completely ignored by the browser
23rd Jun 2025, 2:56 PM
Vaibhav
Vaibhav - avatar