HTML Comment

This construct is used to include text comments that will not be displayed by the browser. Comments are often used to exclude content from older browsers, particularly those that do not understand client-side scripting or style sheets. Page develops should be careful when commenting HTML markup. Older browsers may or may not render the enclosed content.

Syntax

<!-- ... -->

Attributes

None

Event Handlers

None

Examples

<html>
<body>
<!-- This is the comment text and the browser will not read this script -->
</body>
</html>