How is the use of comments and how do you write comments in HTML ?
Table of contents
Comments are some text or code written in your code to explain the code, and not visible to the user.
Comments which are used for HTML files are known as HTML comments.
Anything written between these tags will be ignored by the browser, so comments will not be visible on the webpage.
Comments of any code make code easy to understand and increase the readability of code
Comments are also part of the code, which explains the code.
Adding comments to HTML
-> You can add comments in a HTML file using <!....> tag. So if you will write anything between these comment tags that will be treated as a comment and the browser will not read it.
Subscribe to my newsletter
Read articles from Biswojit Bal directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Biswojit Bal
Biswojit Bal
I am learning on Fullstack Web Development.