The entity name must immediately follow the '&' in the entit

Source: Internet
Author: User

CN & 4star.cn? Pass: fail
As follows:CodeJust fine:
CN & amp; 4star.cn? Pass: fail
 
HTML Special Character Display
Character entities)
Some characters have special meanings in HTML. For example, a character smaller than sign <indicates the beginning of an HTML Tag. This character smaller than sign is not displayed on the webpage we finally see. What should we do if we want to display a nickname in the webpage?

This is about html character entities.

A character entity is divided into three parts: The first part is an & symbol, the English name is ampersand; the second part is the entity name or # With the entity number; the third part is a semicolon.

For example, to display a smaller sign, you can write & lt; or & #60 ;.

The advantage of using an entity name is that it is easy to understand. When you look at it, you can probably guess what it means to be less, however, not all browsers support the latest Entity names. Entity numbers can be processed by various browsers.

Note: entity is case sensitive.

How to display Spaces
Generally, HTML automatically removes unnecessary spaces. No matter how many spaces you add, it is regarded as a space. For example, if you add 10 spaces between two words, HTML removes 9 spaces and retains only one space. To add spaces to a webpage, you can use & nbsp; to indicate spaces.

Character entities)
Display result description entity name entity number
Display a Space & nbsp; & #160;
<Less than & lt; & #60;
> Greater than & gt; & #62;
& Symbol & amp; & #38;
"Double quotation marks & quot; & #34;
 

Character entities)
Display result description entity name entity number
Copyright & copy; & #169;
Registered Trademark & reg; & #174;
× Multiplication number & times; & #215;
Division Number & divide; & #247;
 

Character entities)
For more character entities (character entities), see ISO Latin-1 character set.

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.