HTML <!-- ... --> (Comment) Tag
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:
- Comments often are used to exclude content from older browsers, particularly those that do not understand client-side scripting or style sheets.
- Developers should be careful when commenting markup Language to ensure that other comments are not included or that two dashes (--) are not embedded in the content commented.
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.