HTML comments are not displayed in the browser, but they can help document your HTML source code. Comments are some text or code written in your code to give an explanation about the code, and not visible to the user. Comments which are used for HTML file 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 readability of code. |
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the browser -->
</body>
</html>
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_comment
What is HTML Comments | HTML Comments |
How to create HTML Comment Tag | HTML Comments |
How to add HTML Comments | HTML Comments |
How to Hide HTML Content | HTML Comments |
How to Hide HTML Content Part 2 | HTML Comments |
How to hide Inline Content | HTML Comments |
Example of HTML Comments | HTML Comments |
Read Full: | HTML Comments |
Category: | Web Tutorial |
Sub Category: | HTML Comments |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 34 |