This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

html comment data-type

Summary

A syntactical production: The comment syntax indicates text within a document that is not displayed on the rendered page in the browser. A comment starts with <!-- and ends with -->.

Overview Table

DOM Interface
Comment

Comments can contain other HTML elements. Comments do not nest. Start and end tags are required.

In XML mode, comments must not start or end with a dash, and must not contain two consecutive dashes.

Examples

The following is an example of an HTML Comment.

<!-- This text will not appear in the browser window. -->

Attributions