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.