HTML reserved characters in a detailed

Source: Internet
Author: User

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 &nbsp;

Greater than sign (>) &gt;

Less than sign (<) &lt;

Quotation marks (") &quot;

Copyright symbol (?) &copy;

(&) &amp;

    • Article Source: HTML reserved Characters in a detailed


HTML reserved characters in a detailed

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.