HTML Comment Tag

Comment <!-- comment here --> :-
Comment tag requires exclamation (!) symbol after opening bracket but not before the closing bracket.

Example:-

<html>
<head>
<title>Index | HTML Comment </title>

<head>
<body bgcolor="lightblue" text="black">
This sentence without html comment
<!--This sentence with HTML comment -->


<body>


</html>


The comment section in the html file is ignored by html code in the body section as show in the figure below:-

To Download Example HTML File:- ClickHere   

Comments

Popular posts from this blog

Body tag < body > < / body>

Heading Tag ( h1 to h6)