CBSE Class 10 Computer Applications
Question 115 of 176
HTML I — Basic HTML Elements — Question 14
Back to all questions 14
Question Question 10
How are comments inserted in HTML code ? Explain with example.
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.