HTML Value Syntax

HTML comment syntax

An HTML comment is a source annotation delimited by the comment opener and closer. In normal markup the parser creates a Comment node, not a rendered element. Comments are visible to anyone inspecting the source or DOM, so never put credentials or private information in them. Do not nest comments or use comment delimiters in comment text. Inside raw-text elements, HTML comment syntax is not a general way to comment out JavaScript or CSS.

Formal Syntax & Structure

html syntaxhtml
<!-- Comment text -->

Working Example

Example Snippethtml
<section id="notes">  <!-- Update the schedule before publication. -->  <p>Meeting on Friday.</p></section>
HTML Reference