English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
CertaincharactersarespecialinHTML. Youcannotuselessthan signs(<)andgreaterthansigns(>)inHTML,becausethebrowserwillmisinterpretthemastags. Ifwishedtoshownon-reservedcharacterscorrectly,we must use character entities (character entities) in the HTML source code.
Die Reservierungszeichen in HTML müssen durch Zeichenkörper ersetzt werden.
Charactersnotavailableonthekeyboardcanalsobesubstitutedusingcharacterentities.
CertaincharactersarespecialinHTML.
Youcannotuselessthan signs(<)andgreaterthansigns(>)inHTML,becausethebrowserwillmisinterpretthemastags.
Ifwishedtoshownon-reservedcharacterscorrectly,we must use character entities (character entities) in the HTML source code. Characterentitiesarelike
&entity_name;or
entity_number;
To display the less than sign, we must write it like this: < or < or <
Hint: 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 (the support for entity numbers is good, however).
ThecommonlyusedHTMLcharacterentityisnon-breakingspaces( ).
Thebrowserwillalwaysshortenthe spacesintheHTMLpage. 10 个空格,beforethebrowserdisplays thepage,itisgoingtodelete 9 个。Ifyouwanttoaddmorespacesonapage,youneedtousethe characterentity.
Phoneticcharactersareaglyph(shapecode)addedtotheletter.
Someaccents,suchasacute( ̀)andgrave( ́).
Accentscanappearabove,below,inside,orbetweenletters.
Accentscanbeusedincombinationwithletters,numericcharacters,ortheircombinations.
Herearesomeexamples:
Phoneticcharacter | Character | Construct | Outputresult |
̀ | a | à | à |
́ | a | á | á |
̂ | a | â | â |
̃ | a | ã | ã |
̀ | O | Ò | Ò |
́ | O | Ó | Ó |
̂ | O | Ô | Ô |
̃ | O | Õ | Õ |
Entitynamesarecase-sensitive!
Displayresult | Description | Entityname | Entitynumber |
Space | |||
< | Lt | < | < |
> | Gt | > | > |
& | Ampersand | & | & |
" | Quotationmarks | " | " |
' | Apostrophe | ' (IE does not support) | ' |
¢ | Cent | ¢ | ¢ |
£ | Pound | £ | £ |
¥ | Renminbi/Yen | ¥ | ¥ |
€ | Euro | € | € |
§ | Section | § | § |
© | Copyright | © | © |
® | Registeredtrademark | ® | ® |
&x2122; | Trademark | ™ | ™ |
× | Multiplicationsymbol | × | × |
÷ | Divisionssymbol | ÷ | ÷ |
Obwohl HTML keine Unterscheidung zwischen Groß- und Kleinschreibung macht, sind die Entitätszeichen sensibel gegenüber Groß- und Kleinschreibung.
Klicken Sie hier, um die vollständigen HTML-Entitäten dieser Seite anzuzeigen:HTML Referenzhandbuch für Entitäten.