Please visit our sponsors !
The <!--...--> tag
Definition and Usage
The comment tag is used to insert a comment in the HTML source code. A
comment will be ignored by the browser. You can use comments to explain your
code, which can help you when you edit the source code at a later date.
You can also store program-specific information inside comments. In this case
they will not be visible for the user, but they are still available to the
program. A good practice is to comment the text inside the script and style elements to
prevent older browsers, that do not support scripting or styles, from showing it
as plain text.
Examples
This code: |
Produces this output: |
<!-- This text is a comment -->
<p>This is a regular paragraph</p> |
This is a regular paragraph
|
Attributes: NONE
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|