Computer Applications
What is the method of using comment line in HTML code ?
HTML Intro
4 Likes
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.
Answered By
2 Likes