Adding HTML Comments
Comments are designated somewhat different in every language. In HTML, however, they are defined using a tag. The browser will ignore anything placed within this tag.
Note Comments are not hidden from other people. Comments, if included in your deployment code, will be available for the whole world to see.
HTML
<!-- This is an HTML comment. -->
<!-- Everything placed between the 'dashes' is part of the comment. -->
<!-- Comments should not span multiple lines in HTML.
Sometimes this can cause issues for a browser's processor.
This comment is considered as bad style. -->
<!-- Instead: -->
<!-- You should place each line of a multi-line comment within a comment tag. -->
<!-- That would be considered proper style. -->
html
- Previous
- Next