Computer Science, asked by aarchi82, 1 year ago

why do we use comments in HTML program
give the full program with output also
please I will mark u as brain list

Answers

Answered by siddhartharao77
3

Comments in HTML:

(i) It is a tag in HTML which allows a comment into a source code.

(ii) They are used to hide some text (or) code from the browser.

(iii) Generally,comments gives help to reader to identify piece of code specially in complex source code.

(or)

They assist the user in understanding the code.

(iv) Comments begins with <!-- and ends with -->

(v) Types of comments are:

(i) Single line comments.

(ii) Multi-line comments.

Sample Program :

<html>

<body>

<!-- Enter anything -->

<p>Comments are not displayed to the end user</p>

</body>

</html>


<!Hope it helps -->

Attachments:
Similar questions