This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

html comment data-type


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

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.


The following is an example of an HTML Comment.

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