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

< html‎ | elements(Redirected from html/elements/comment)
Jump to: navigation, search

html comment data-type

This article is Not Ready.


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.


The following is an example of an HTML Comment.

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


This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]