Difference between revisions of "HTML comment"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (Created page with "In HTML the '''comment''' is ignored by the browser. == Description == Use the comment to: * Add useful information for developers and managers * "Comment out" a sectio...") |
Karl Jones (Talk | contribs) m (Karl Jones moved page Comment (HTML element) to HTML comment) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | In [[HTML]] | + | In [[HTML]], a '''comment''' is a section of content which is ignored (not rendered visually) by a web browser. |
== Description == | == Description == | ||
Line 7: | Line 7: | ||
* Add useful information for developers and managers | * Add useful information for developers and managers | ||
* "Comment out" a section of code, so the browser ignores the code, while keeping the code | * "Comment out" a section of code, so the browser ignores the code, while keeping the code | ||
+ | |||
+ | == Example == | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <nowiki><!-- HTML comment, ignored by browser, not displayed --></nowiki> | ||
== See also == | == See also == | ||
+ | * [[Comment (computer programming)]] | ||
+ | * [[CSS comment]] | ||
* [[HTML]] | * [[HTML]] | ||
* [[HTML elements]] | * [[HTML elements]] | ||
Line 15: | Line 23: | ||
== External links == | == External links == | ||
− | * [ | + | * [http://www.w3schools.com/tags/tag_comment.asp HTML comment] @ w3schools.com |
− | + | ||
[[Category:HTML elements]] | [[Category:HTML elements]] |
Latest revision as of 05:22, 29 September 2016
In HTML, a comment is a section of content which is ignored (not rendered visually) by a web browser.
Contents
Description
Use the comment to:
- Add useful information for developers and managers
- "Comment out" a section of code, so the browser ignores the code, while keeping the code
Example
Example:
<!-- HTML comment, ignored by browser, not displayed -->
See also
External links
- HTML comment @ w3schools.com