There are usually two situations in which you need to use character entities:
2. Character Entity instances:
The less than sign (<) and greater than sign (>) cannot be used in HTML because the browser mistakenly considers them to be labels.
If you want to display reserved characters correctly, we must use the character entity (character entities) in the HTML source code.
|Show Results||Description||Entity name||Entity number|
|Space|| ||& #160;|
|<||Less than sign||<||& #60;|
|>||Greater than sign||>||& #62;|
|&||and number||&||& #38;|
|‘||Apostrophe||' (ie not supported)||& #39;|
|￠||Score of||¢||& #162;|
|®||Registered trademarks||®||& #174;|
|X||Multiplication sign||×||& #215;|
|÷||Division Sign||÷||& #247;|
tip: The advantage of using entity names instead of numbers is that names are easy to remember. The downside is that the browser may not support all entity names (the support for entity numbers is good).
3. Combining phonetic symbols:
The pronunciation symbol is a "glyph" that is added to the letter.
Some diacritical marks, such as a sharp note (?) and a grave accent (?).
Diacritical marks can appear above and below letters, or within letters, or between two letters.
Diacritical marks can be used in combination with letters and numeric characters.
Here are some examples:
|Phonetic notation||character||Construct||Output Results|
The entity name is case sensitive!
When you write characters, you should pay attention to the format, character and punctuation, one can not be wrong!
HTML character entity