HTML <!-- ... --> (Comment) Tag

❮ Previous Home Next ❯

Example

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

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

Meaning

This element will not be displayed by the browser.

It may be used for informational messages for developers as well as to mask content from user agents that do not support a particular technology.

No attributes or events are associated with this construct

Notes:


Standard Syntax

<!-- ... -->


Browser Support



Standard Attributes

The comment tag does not support any standard attributes.


Event Attributes

The comment tag does not support any event attributes.







❮ Previous Home Next ❯