How to write comments in HTML, Comments in HTML, HTML Comments



How to write comments in HTML, Comments in HTML, HTML Comments

<!-- place your comments here -->
the above tag is used to place a comment on your web page

Why we are use this tag?

The Browser interpreted all text and show that text on web page including // and /*   */ but if you want to place a comment on your web page then you should this tag
Example:-

<html>
<head><title>HTML Comments</title></head>
<body>
<!-- this text will not shown on your web page -->
<h1>Welcome to the HTML Comments Tag</h1>
</body>
</html>


{ 0 comments... read them below or add one }

Post a Comment