Advertisement
❮ Previous: HTML Entities Names Next: <!-- .[ ].. --> ❯

<!--...-->

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

Example

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

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

Try this code ❯

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:


Advertisement

Standard Syntax

<!-- ... -->

Browser Support

BrowsersChromeChrome AndroidEdgeFirefoxFirefox AndroidIEOperaOpera AndroidSafariSafari IOSSamsung Internet AndroidWebview Android
<!-- ... -->YesYesYesYesYesYesYesYesYesYesYesYes

Standard Attributes

The comment tag does not support any standard attributes.


Event Attributes

The comment tag does not support any event attributes.

❮ Previous: HTML Entities Names Next: <!-- .[ ].. --> ❯
Advertisement