![]() |
|
![]() |
||
![]() |
![]() |
|
XHTML CommentsYou can add comments to your XHTML documents to remind yourself, or to document to others what you were trying to do in your Web page. XHTML comments only appear in the page source, and are invisible to users browsing your page - i.e. Web browsers ignore the contents of XHTML comments. An XHTML comment example is shown here: Code Sample: To add a comment into your XHTML page:
You can put comments anywhere in an XHTML document, and insert just about anything at all within them. Here's what the above XHTML code would look like in a browser - notice how the contents of all the XHTML comment tags were completely ignored by the browser: Code Sample — browser view
In summary, XHTML comments can be used anywhere in a Web page to help the author(s) understand the source code - they remain invisible to the web page viewer. Here are some common usages and ticks:
|
|
||||||||||||||||||||||