ad

Saturday, November 15, 2025

how to use comment tag in html

 how to use comment  tag in html 

https://webdesigningtheory.blogspot.com

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.

Step 2 ]

   <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

Step 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>

how to use comment  tag in html 

Output

how to use comment  tag in html


Related Post :-

how to use the html button input

how to create ordered lists in html

html alignment tag