Computer Science, asked by RifaBorbora, 1 year ago

What are comments in HTML ?​

Answers

Answered by pptx16
7
this element is used to add a comment to a HTML document.An HTML document begins with a <!-- n the comment closes with-->. HTML comments r visible to anyone that views the page source code, but r not rendered when the HTML
can you please mark the answer as brainliest

pptx16: pls mark as brainliest
pptx16: as i have given you the answer u should mark the ans as brainliest
Answered by ankurbadani84
4

Answer:

Comment in HTML is written with the help of  tags <!-- and -->

Explanation:

Suppose you need to add a comment in your code.

comment : "this code changes the background colour"

So you will write this as

<!--this code changes the background colour-->

Make sure there are no spaces in the comment tags. For example < !-- will not activate the comment function. Inside the tags, you can have as many spaces as you'd like.

Similar questions