This article is collected and collated by www.169it.com |
1. Notes
Comments in HTML are similar to other language annotations in order to facilitate reading and debugging code. Note content is automatically ignored when the browser encounters a comment. The comment format for HTML multiple lines and single-line comments are in one format, as follows:
<!--comment Content--
When the page HTML structure is complex or?? When you are more tolerant, you need to add the necessary annotations to facilitate reading and maintaining your code. At the same time, sometimes in order to debug the code, you need to temporarily comment out some unnecessary code, convenient debugging.
Code specification: It is important to note that the XHTML 1.0 standard does not show double-line "--" in annotations.
Non-canonical annotation:<!------Project list section------->
Specification of Annotations:<!--##### #项目列表部分 ######-->
2. Reserved characters
Because symbols such as the greater than (>) less than sign (<) are syntax symbols for HTML, if you want to display these special symbols in a page, you must use the corresponding HTML code representation, which is called the character entity for the corresponding HTML code.
Commonly used special symbols and corresponding character entity tables, these character entities are "&" beginning with the English semicolon ";" End.
Special Symbol character entity
Spaces
Greater than sign (>) >
Less than sign (<) <
Quotation marks (") "
Copyright symbol (?) ©
(&) &
HTML reserved characters in a detailed