Computer Science, asked by anshbhasin, 8 months ago

what is comment in HTML coding ? how do you cream a comment tag ?​

Answers

Answered by baltejsingh6789
2

Explanation:

This element is used to add a comment to an HTML document. An HTML comment begins with <! –– and the comment closes with ––> . HTML comments are visible to anyone that views the page source code, but are not rendered when the HTML document is rendered by a browser.

Answered by komalpilania2
4

Answer:

The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.

<!--This is a comment. Comments are not displayed in the browser-->

<p>This is a paragraph.</p>

Definition and Usage

The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.

You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.

Similar questions