CBSE Class 10 Computer Applications Question 120 of 176

HTML I — Basic HTML Elements — Question 19

Back to all questions
19
Question

Question 15

What is the method of using comment line in HTML code ?

Answer

Comments are inserted in HTML code by enclosing them in <!-- and --> tags. For example,

<BODY>
<!-- Body tag starts here -->
This is the document body.
</BODY>

Here, the text "Body tag starts here" is enclosed in <!-- and --> and thus, it is regarded as comment and not displayed in the web browser.