Note Labels are used to insert comments in the source document. Comments are ignored by the browser. You can use annotations to interpret your code, which will help you edit your code at a later time.
You can also store information that is customized for your program in the annotation content. In this case, this information is not visible to the user, but is available to the program. A good habit is to put notes or style elements in the comment text so that old browsers that do not support scripts or styles will be shown as plain text.
In addition to having a significant effect in the source document, many WEB servers use annotations to implement features specific to the document server side software. These servers can scan documents, find specific sequences of characters from traditional XHTML annotations, and then take actions based on commands embedded in comments. These actions may be simple to include text in other files (that is, the so-called server-side contains, server-inside include), or it may be complex to execute other commands to dynamically generate the contents of the document.
Differences between HTML 4.01 and HTML 5
NONE
Example:
<!--This text is a comment--> <p>this is a regular paragraph</p>
Properties: None
Tiy instance
Hidden annotations
This example shows how to insert a hidden comment in the HTML source code.
The code is as follows:
<html> <body> <!--This is a note. Comments are not displayed in the browser. --> <p> This is an ordinary paragraph. </p> </body> </html>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.