Skip to main content

Command Palette

Search for a command to run...

Comment In Html

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

Updated
•1 min read•View as Markdown
Comment In Html
M

I AM A LEARNER

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

Question Answer series

Part 4 of 5

we started a new series which name Question answer Series which help you and me to gain some more knowledge of coding and programing we upload question with answer which help you to build basics

Up next

"Hello World" Question Answer Series 1st

1)  Why do we start learning a programming language with “Hello World ?

More from this blog

Mr Ayush Sarode's blog

21 posts

I want to spared knowledge