English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Certain characters are reserved in HTML. We cannot use the less than symbol (<) and the greater than symbol (>) in HTML, because the browser will misinterpret them as tags. To display reserved characters correctly, we must use character entities (character entities) in the HTML source code.
Reserved characters in HTML must be replaced with character entities.
Some characters that are not found on the keyboard can also be replaced with character entities.
Certain characters are reserved in HTML.
We cannot use the less than symbol (<) and the greater than symbol (>) in HTML, because the browser will misinterpret them as tags.
To display reserved characters correctly, we must use character entities (character entities) in the HTML source code. Character entities look like this:
&entity_name;or
entity_number;
To display the less than symbol, we must write: < or < or <
Tip: The advantage of using entity names instead of numbers is that they are easy to remember. However, the disadvantage is that browsers may not support all entity names (browsers support entity numbers very well).
The commonly used character entities in HTML are non-breaking spaces ( ).
The browser always truncates spaces in HTML pages. If you write 10 spaces, the browser will delete them before displaying the page. 9 number. If you need to increase the number of spaces on a page, you need to use the character entity.
Phonetic symbols are a 'glyph' added to letters.
Some accents, such as the acute accent ( ̀ ) and the grave accent ( ́ ).
Accents can appear above, below, inside, or between letters.
Accents can be used in combination with letters, numbers, and character combinations.
The following are some examples:
Phonetic symbol | Character | Construct | Output result |
̀ | a | à | à |
́ | a | á | á |
̂ | a | â | â |
̃ | a | ã | ã |
̀ | O | Ò | Ò |
́ | O | Ó | Ó |
̂ | O | Ô | Ô |
̃ | O | Õ | Õ |
Entity names are case-sensitive!
Display result | Description | Entity name | Entity number |
Space | |||
< | Less than symbol | < | < |
> | Greater than symbol | > | > |
& | And symbol | & | & |
" | Quotation marks | " | " |
' | Apostrophe | ' (IE does not support) | ' |
¢ | Cent | ¢ | ¢ |
£ | Pound | £ | £ |
¥ | RMB/Yen | ¥ | ¥ |
€ | Euro | € | € |
§ | Section | § | § |
© | Copyright | © | © |
® | Registered trademark | ® | ® |
&x2122; | Trademark | ™ | ™ |
× | Multiplication symbol | × | × |
÷ | Division symbol | ÷ | ÷ |
Although HTML is case-insensitive, entity characters are sensitive to case.
Please click to view the complete HTML entities on this site:HTML Entity Reference Manual.