how to use comment tag in html
how to use comment tag in html
Example
<!DOCTYPE html>
<html>
<body>
<!-- This is a comment -->
<p>Web Designing theory blogger (webdesigningtheory.blogspot.com)</p>
<!-- Comments are not displayed in the browser -->
</body>
</html>
how to use comment tag in html
Explain Program
Step 1 ]
<!Doctype html>
<!doctype html> always be the first line of any HTML document.
<!Doctype html>
<!doctype html> always be the first line of any HTML document.
Step 2 ]
<html> and </html>
html is the root element.
<html> and </html>
html is the root element.
Step 3 ]
<body> and </body>
body is main content area.
All visible content inside to the <body> tag
<body> and </body>
body is main content area.
All visible content inside to the <body> tagStep 4]
<!-- This is a comment -->
html comment
comments are not visible on the webpage. they are only seen in the code.
Step 5]
<p>Web Designing theory blogger (webdesigningtheory.blogspot.com)</p>
paragraph tag . displays the text web designing theory blogger ( webdesigningtheory.blogspot.com )
display webpage.
Step 6]
closing the Tag
</body>
</html>
