Comment In Html

How is the use of comments and how do you write comments in html? (Question answer series ) 2nd question

Comment In Html

Table of contents

No heading

No headings in the article.

  1. How is the use of comments and how do you write comments in html?

Ans

we use comment as a hint or as a line by which other developer can easily understand why that code is written

means
To add notes or explanations to the code for other developers

Actually by the comment we understand easily for what purpose that code is written by we or other coder

we write comment with the help of two types

with the help of ctrl + forward slash ( / ) we write our comment in window pc

Ctrl + forward slash

ctrl+/ (forward slash)

and we directly write full code as shown below

<!--writeyourcomment—>