Skip to content
beginners
  • Home
  • Tutorial
  • Web Development
Introduction
Editor
Elements
Attributes
CSS
Heading Tag
Paragraph Tag
Anchor Tag
Text Formatting
HTML Blockquote
Image Tag
Table Tag
List Tag
HTML Form
Commaet Tag
Class And ID
Responsive

Comment Tag

  • January 16, 2022August 6, 2022
  • by root

Comment Tag

Comment ( <!– –> ) tag is used to write the comment in the code and this comment would not shown on webpage by the browsers. Whenever we write any complex code in HTML then we can write the comments for each line of code to make understand. If other person read your complex code he/she can understand the code by your comments.

Syntax

<!-- It's a comment tag -->

Example:

<html>
  
<head>

<title>Page Title</title>

</head>

<body>

<!-- It's a paragraph tag -->

<p> It's my paragraph </p>






<!-- It's a heading tag -->

<h1> It's my heading </h1>

</body>

</html>

Browser hides those comments and shown only heading and paragraph text.

Output:

Note: If you have rough code you can comment that to hide.

Hello
Theme by Colorlib Powered by WordPress
  • Disclaimer