第七章 body中的实体符号
一、HTML实体
在 HTML 中,某些字符是预留的,预留字符必须被替换为字符实体。在 HTML 中不能使用小于号(<)和大于号(>),这是因为浏览器会误认为它们是标签。
如果希望正确地显示预留字符,我们必须在 HTML 源代码中使用字符实体(character entities)。字符实体类似这样:
&entity_name;
或者
&#entity_number;
二、常用的字符实体
- 不间断空格
(non-breaking space)
HTML 中的常用字符实体是不间断空格( )。
浏览器总是会截短 HTML 页面中的空格。如果您在文本中写 10 个空格,在显示该页面之前,浏览器会删除它们中的 9 个。如需在页面中增加空格的数量,您需要使用
字符实体。
注意:实体名称对大小写敏感!
HTML 中常用的字符实体
显示结果 | 描述 | 实体名称 | 实体编号 |
---|---|---|---|
| 空格 | |   |
< | 小于号 | < | < |
> | 大于号 | > | > |
& | 和号 | & | & |
" | 引号 | " | " |
' | 撇号 | ' (IE不支持) | ' |
¢ | 分(cent) | ¢ | ¢ |
£ | 镑(pound) | £ | £ |
¥ | 元(yen) | ¥ | ¥ |
€ | 欧元(euro) | € | € |
§ | 小节 | § | § |
© | 版权(copyright) | © | © |
® | 注册商标 | ® | ® |
™ | 商标 | ™ | ™ |
× | 乘号 | × | × |
÷ | 除号 | ÷ | ÷ |
三、HTML ISO-8859-1 字符实体名称编号对照表
推荐使用实体编号,浏览器对实体编号的支持比较好。
HTML 4.01 支持 ISO 8859-1 (Latin-1) 字符集。
ISO-8859-1 的较低部分(从 1 到 127 之间的代码)是最初的 7 比特 ASCII。
ISO-8859-1 的较高部分(从 160 到 255 之间的代码)全都有实体名称。
这些符号中的大多数都可以在不进行实体引用的情况下使用,但是实体名称或实体编号为那些不容易通过键盘键入的符号提供了表达的方法。
再次强调
:实体名称对大小写敏感。
3.1 带有实体名称的 ASCII 实体.
结果 | 描述 | 实体名称 | 实体编号 |
---|---|---|---|
" | quotation mark | " | " |
' | apostrophe | ' | ' |
& | ampersand | & | & |
< | less-than | < | < |
> | greater-than | > | > |
3.2 ISO 8859-1 符号实体
结果 | 描述 | 实体名称 | 实体编号 |
---|---|---|---|
non-breaking space | |   | |
¡ | inverted exclamation mark | ¡ | ¡ |
¢ | cent | ¢ | ¢ |
£ | pound | £ | £ |
¤ | currency | ¤ | ¤ |
¥ | yen | ¥ | ¥ |
¦ | broken vertical bar | ¦ | ¦ |
§ | section | § | § |
¨ | spacing diaeresis | ¨ | ¨ |
© | copyright | © | © |
ª | feminine ordinal indicator | ª | ª |
« | angle quotation mark (left) | « | « |
¬ | negation | ¬ | ¬ |
| soft hyphen | ­ | ­ |
® | registered trademark | ® | ® |
¯ | spacing macron | ¯ | ¯ |
° | degree | ° | ° |
± | plus-or-minus | ± | ± |
² | superscript 2 | ² | ² |
³ | superscript 3 | ³ | ³ |
´ | spacing acute | ´ | ´ |
µ | micro | µ | µ |
¶ | paragraph | ¶ | ¶ |
· | middle dot | · | · |
¸ | spacing cedilla | ¸ | ¸ |
¹ | superscript 1 | ¹ | ¹ |
º | masculine ordinal indicator | º | º |
» | angle quotation mark (right) | » | » |
¼ | fraction 1/4 | ¼ | ¼ |
½ | fraction 1/2 | ½ | ½ |
¾ | fraction 3/4 | ¾ | ¾ |
¿ | inverted question mark | ¿ | ¿ |
× | multiplication | × | × |
÷ | division | ÷ | ÷ |
## 3.3 ISO 8859-1 字符实体
<td>capital a, grave accent</td>
<td>&Agrave;</td>
<td>&#192;</td>
</tr>
<tr>
<td>Á</td>
<td>capital a, acute accent</td>
<td>&Aacute;</td>
<td>&#193;</td>
</tr>
<tr>
<td>Â</td>
<td>capital a, circumflex accent</td>
<td>&Acirc;</td>
<td>&#194;</td>
</tr>
<tr>
<td>Ã</td>
<td>capital a, tilde</td>
<td>&Atilde;</td>
<td>&#195;</td>
</tr>
<tr>
<td>Ä</td>
<td>capital a, umlaut mark</td>
<td>&Auml;</td>
<td>&#196;</td>
</tr>
<tr>
<td>Å</td>
<td>capital a, ring</td>
<td>&Aring;</td>
<td>&#197;</td>
</tr>
<tr>
<td>Æ</td>
<td>capital ae</td>
<td>&AElig;</td>
<td>&#198;</td>
</tr>
<tr>
<td>Ç</td>
<td>capital c, cedilla</td>
<td>&Ccedil;</td>
<td>&#199;</td>
</tr>
<tr>
<td>È</td>
<td>capital e, grave accent</td>
<td>&Egrave;</td>
<td>&#200;</td>
</tr>
<tr>
<td>É</td>
<td>capital e, acute accent</td>
<td>&Eacute;</td>
<td>&#201;</td>
</tr>
<tr>
<td>Ê</td>
<td>capital e, circumflex accent</td>
<td>&Ecirc;</td>
<td>&#202;</td>
</tr>
<tr>
<td>Ë</td>
<td>capital e, umlaut mark</td>
<td>&Euml;</td>
<td>&#203;</td>
</tr>
<tr>
<td>Ì</td>
<td>capital i, grave accent</td>
<td>&Igrave;</td>
<td>&#204;</td>
</tr>
<tr>
<td>Í</td>
<td>capital i, acute accent</td>
<td>&Iacute;</td>
<td>&#205;</td>
</tr>
<tr>
<td>Î</td>
<td>capital i, circumflex accent</td>
<td>&Icirc;</td>
<td>&#206;</td>
</tr>
<tr>
<td>Ï</td>
<td>capital i, umlaut mark</td>
<td>&Iuml;</td>
<td>&#207;</td>
</tr>
<tr>
<td>Ð</td>
<td>capital eth, Icelandic</td>
<td>&ETH;</td>
<td>&#208;</td>
</tr>
<tr>
<td>Ñ</td>
<td>capital n, tilde</td>
<td>&Ntilde;</td>
<td>&#209;</td>
</tr>
<tr>
<td>Ò</td>
<td>capital o, grave accent</td>
<td>&Ograve;</td>
<td>&#210;</td>
</tr>
<tr>
<td>Ó</td>
<td>capital o, acute accent</td>
<td>&Oacute;</td>
<td>&#211;</td>
</tr>
<tr>
<td>Ô</td>
<td>capital o, circumflex accent</td>
<td>&Ocirc;</td>
<td>&#212;</td>
</tr>
<tr>
<td>Õ</td>
<td>capital o, tilde</td>
<td>&Otilde;</td>
<td>&#213;</td>
</tr>
<tr>
<td>Ö</td>
<td>capital o, umlaut mark</td>
<td>&Ouml;</td>
<td>&#214;</td>
</tr>
<tr>
<td>Ø</td>
<td>capital o, slash</td>
<td>&Oslash;</td>
<td>&#216;</td>
</tr>
<tr>
<td>Ù</td>
<td>capital u, grave accent</td>
<td>&Ugrave;</td>
<td>&#217;</td>
</tr>
<tr>
<td>Ú</td>
<td>capital u, acute accent</td>
<td>&Uacute;</td>
<td>&#218;</td>
</tr>
<tr>
<td>Û</td>
<td>capital u, circumflex accent</td>
<td>&Ucirc;</td>
<td>&#219;</td>
</tr>
<tr>
<td>Ü</td>
<td>capital u, umlaut mark</td>
<td>&Uuml;</td>
<td>&#220;</td>
</tr>
<tr>
<td>Ý</td>
<td>capital y, acute accent</td>
<td>&Yacute;</td>
<td>&#221;</td>
</tr>
<tr>
<td>Þ</td>
<td>capital THORN, Icelandic</td>
<td>&THORN;</td>
<td>&#222;</td>
</tr>
<tr>
<td>ß</td>
<td>small sharp s, German</td>
<td>&szlig;</td>
<td>&#223;</td>
</tr>
<tr>
<td>à</td>
<td>small a, grave accent</td>
<td>&agrave;</td>
<td>&#224;</td>
</tr>
<tr>
<td>á</td>
<td>small a, acute accent</td>
<td>&aacute;</td>
<td>&#225;</td>
</tr>
<tr>
<td>â</td>
<td>small a, circumflex accent</td>
<td>&acirc;</td>
<td>&#226;</td>
</tr>
<tr>
<td>ã</td>
<td>small a, tilde</td>
<td>&atilde;</td>
<td>&#227;</td>
</tr>
<tr>
<td>ä</td>
<td>small a, umlaut mark</td>
<td>&auml;</td>
<td>&#228;</td>
</tr>
<tr>
<td>å</td>
<td>small a, ring</td>
<td>&aring;</td>
<td>&#229;</td>
</tr>
<tr>
<td>æ</td>
<td>small ae</td>
<td>&aelig;</td>
<td>&#230;</td>
</tr>
<tr>
<td>ç</td>
<td>small c, cedilla</td>
<td>&ccedil;</td>
<td>&#231;</td>
</tr>
<tr>
<td>è</td>
<td>small e, grave accent</td>
<td>&egrave;</td>
<td>&#232;</td>
</tr>
<tr>
<td>é</td>
<td>small e, acute accent</td>
<td>&eacute;</td>
<td>&#233;</td>
</tr>
<tr>
<td>ê</td>
<td>small e, circumflex accent</td>
<td>&ecirc;</td>
<td>&#234;</td>
</tr>
<tr>
<td>ë</td>
<td>small e, umlaut mark</td>
<td>&euml;</td>
<td>&#235;</td>
</tr>
<tr>
<td>ì</td>
<td>small i, grave accent</td>
<td>&igrave;</td>
<td>&#236;</td>
</tr>
<tr>
<td>í</td>
<td>small i, acute accent</td>
<td>&iacute;</td>
<td>&#237;</td>
</tr>
<tr>
<td>î</td>
<td>small i, circumflex accent</td>
<td>&icirc;</td>
<td>&#238;</td>
</tr>
<tr>
<td>ï</td>
<td>small i, umlaut mark</td>
<td>&iuml;</td>
<td>&#239;</td>
</tr>
<tr>
<td>ð</td>
<td>small eth, Icelandic</td>
<td>&eth;</td>
<td>&#240;</td>
</tr>
<tr>
<td>ñ</td>
<td>small n, tilde</td>
<td>&ntilde;</td>
<td>&#241;</td>
</tr>
<tr>
<td>ò</td>
<td>small o, grave accent</td>
<td>&ograve;</td>
<td>&#242;</td>
</tr>
<tr>
<td>ó</td>
<td>small o, acute accent</td>
<td>&oacute;</td>
<td>&#243;</td>
</tr>
<tr>
<td>ô</td>
<td>small o, circumflex accent</td>
<td>&ocirc;</td>
<td>&#244;</td>
</tr>
<tr>
<td>õ</td>
<td>small o, tilde</td>
<td>&otilde;</td>
<td>&#245;</td>
</tr>
<tr>
<td>ö</td>
<td>small o, umlaut mark</td>
<td>&ouml;</td>
<td>&#246;</td>
</tr>
<tr>
<td>ø</td>
<td>small o, slash</td>
<td>&oslash;</td>
<td>&#248;</td>
</tr>
<tr>
<td>ù</td>
<td>small u, grave accent</td>
<td>&ugrave;</td>
<td>&#249;</td>
</tr>
<tr>
<td>ú</td>
<td>small u, acute accent</td>
<td>&uacute;</td>
<td>&#250;</td>
</tr>
<tr>
<td>û</td>
<td>small u, circumflex accent</td>
<td>&ucirc;</td>
<td>&#251;</td>
</tr>
<tr>
<td>ü</td>
<td>small u, umlaut mark</td>
<td>&uuml;</td>
<td>&#252;</td>
</tr>
<tr>
<td>ý</td>
<td>small y, acute accent</td>
<td>&yacute;</td>
<td>&#253;</td>
</tr>
<tr>
<td>þ</td>
<td>small thorn, Icelandic</td>
<td>&thorn;</td>
<td>&#254;</td>
</tr>
<tr>
<td>ÿ</td>
<td>small y, umlaut mark</td>
<td>&yuml;</td>
<td>&#255;</td>
</tr>
结果 | 描述 | 实体名称 | 实体编号 |
---|---|---|---|
À |
# 四、HTML 4.01 符号实体 *本字符实体包括了数学符号、希腊字符、各种箭头记号、科技符号以及形状。*
注释
:实体名称对大小写敏感。
4.1 HTML 支持的数学符号
<td>&forall;</td>
<td>&#8704;</td>
</tr>
<td>&#8706;</td>
</tr>
</tr>
<td>∈</td>
<td>isin</td>
<td>&isin;</td>
<td>&#8712;</td>
</tr>
<td>notin</td>
<td>&notin;</td>
<td>&#8713;</td>
</tr>
<td>&ni;</td>
<td>&#8715;</td>
</tr>
<td>&#8719;</td>
</tr>
</tr>
<td>√</td>
<td>square root</td>
<td>&radic;</td>
<td>&#8730;</td>
</tr>
<td>proportional to</td>
<td>&prop;</td>
<td>&#8733;</td>
</tr>
<td>&infin;</td>
<td>&#8734;</td>
</tr>
<td>&#8736;</td>
</tr>
<td>∪</td>
<td>cup</td>
<td>&cup;</td>
<td>&#8746;</td>
</tr>
<td>integral</td>
<td>&int;</td>
<td>&#8747;</td>
</tr>
<td>&there4;</td>
<td>&#8756;</td>
</tr>
<td>&#8764;</td>
</tr>
</tr>
<td>≡</td>
<td>equivalent</td>
<td>&equiv;</td>
<td>&#8801;</td>
</tr>
<td>less or equal</td>
<td>&le;</td>
<td>&#8804;</td>
</tr>
<td>&ge;</td>
<td>&#8805;</td>
</tr>
<td>&#8834;</td>
</tr>
</tr>
<td>⊇</td>
<td>superset or equal</td>
<td>&supe;</td>
<td>&#8839;</td>
</tr>
<td>circled plus</td>
<td>&oplus;</td>
<td>&#8853;</td>
</tr>
<td>&otimes;</td>
<td>&#8855;</td>
</tr>
<td>&#8869;</td>
</tr>
</tr>
结果 | 描述 | 实体名称 | 实体编号 |
---|---|---|---|
∀ | for all | ||
∂ | part | ∂ | |
∃ | exists | &exists; | ∃ |
∅ | empty | ∅ | ∅ |
∇ | nabla | ∇ | ∇ |
∉ | |||
∋ | ni | ||
∏ | prod | ∏ | |
∑ | sum | ∑ | ∑ |
− | minus | − | − |
∗ | lowast | ∗ | ∗ |
∝ | |||
∞ | infinity | ||
∠ | angle | ∠ | |
∧ | and | ∧ | ∧ |
∨ | or | ∨ | ∨ |
∩ | cap | ∩ | ∩ |
∫ | |||
∴ | therefore | ||
∼ | simular to | ∼ | |
≅ | approximately equal | ≅ | ≅ |
≈ | almost equal | ≈ | ≈ |
≠ | not equal | ≠ | ≠ |
≤ | |||
≥ | greater or equal | ||
⊂ | subset of | ⊂ | |
⊃ | superset of | ⊃ | ⊃ |
⊄ | not subset of | ⊄ | ⊄ |
⊆ | subset or equal | ⊆ | ⊆ |
⊕ | |||
⊗ | cirled times | ||
⊥ | perpendicular | ⊥ | |
⋅ | dot operator | ⋅ | ⋅ |
## 4.2 HTML 支持的希腊字母
<td>&#913;</td>
</tr>
<tr>
<td>Β</td>
<td>Beta</td>
<td>&Beta;</td>
<td>&#914;</td>
</tr>
<tr>
<td>Γ</td>
<td>Gamma</td>
<td>&Gamma;</td>
<td>&#915;</td>
</tr>
<tr>
<td>Δ</td>
<td>Delta</td>
<td>&Delta;</td>
<td>&#916;</td>
</tr>
<tr>
<td>Ε</td>
<td>Epsilon</td>
<td>&Epsilon;</td>
<td>&#917;</td>
</tr>
<tr>
<td>Ζ</td>
<td>Zeta</td>
<td>&Zeta;</td>
<td>&#918;</td>
</tr>
<tr>
<td>Η</td>
<td>Eta</td>
<td>&Eta;</td>
<td>&#919;</td>
</tr>
<tr>
<td>Θ</td>
<td>Theta</td>
<td>&Theta;</td>
<td>&#920;</td>
</tr>
<tr>
<td>Ι</td>
<td>Iota</td>
<td>&Iota;</td>
<td>&#921;</td>
</tr>
<tr>
<td>Κ</td>
<td>Kappa</td>
<td>&Kappa;</td>
<td>&#922;</td>
</tr>
<tr>
<td>Λ</td>
<td>Lambda</td>
<td>&Lambda;</td>
<td>&#923;</td>
</tr>
<tr>
<td>Μ</td>
<td>Mu</td>
<td>&Mu;</td>
<td>&#924;</td>
</tr>
<tr>
<td>Ν</td>
<td>Nu</td>
<td>&Nu;</td>
<td>&#925;</td>
</tr>
<tr>
<td>Ξ</td>
<td>Xi</td>
<td>&Xi;</td>
<td>&#926;</td>
</tr>
<tr>
<td>Ο</td>
<td>Omicron</td>
<td>&Omicron;</td>
<td>&#927;</td>
</tr>
<tr>
<td>Π</td>
<td>Pi</td>
<td>&Pi;</td>
<td>&#928;</td>
</tr>
<tr>
<td>Ρ</td>
<td>Rho</td>
<td>&Rho;</td>
<td>&#929;</td>
</tr>
<tr>
<td> </td>
<td>Sigmaf</td>
<td> </td>
<td>undefined</td>
</tr>
<tr>
<td>Σ</td>
<td>Sigma</td>
<td>&Sigma;</td>
<td>&#931;</td>
</tr>
<tr>
<td>Τ</td>
<td>Tau</td>
<td>&Tau;</td>
<td>&#932;</td>
</tr>
<tr>
<td>Υ</td>
<td>Upsilon</td>
<td>&Upsilon;</td>
<td>&#933;</td>
</tr>
<tr>
<td>Φ</td>
<td>Phi</td>
<td>&Phi;</td>
<td>&#934;</td>
</tr>
<tr>
<td>Χ</td>
<td>Chi</td>
<td>&Chi;</td>
<td>&#935;</td>
</tr>
<tr>
<td>Ψ</td>
<td>Psi</td>
<td>&Psi;</td>
<td>&#936;</td>
</tr>
<tr>
<td>Ω</td>
<td>Omega</td>
<td>&Omega;</td>
<td>&#937;</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>α</td>
<td>alpha</td>
<td>&alpha;</td>
<td>&#945;</td>
</tr>
<tr>
<td>β</td>
<td>beta</td>
<td>&beta;</td>
<td>&#946;</td>
</tr>
<tr>
<td>γ</td>
<td>gamma</td>
<td>&gamma;</td>
<td>&#947;</td>
</tr>
<tr>
<td>δ</td>
<td>delta</td>
<td>&delta;</td>
<td>&#948;</td>
</tr>
<tr>
<td>ε</td>
<td>epsilon</td>
<td>&epsilon;</td>
<td>&#949;</td>
</tr>
<tr>
<td>ζ</td>
<td>zeta</td>
<td>&zeta;</td>
<td>&#950;</td>
</tr>
<tr>
<td>η</td>
<td>eta</td>
<td>&eta;</td>
<td>&#951;</td>
</tr>
<tr>
<td>θ</td>
<td>theta</td>
<td>&theta;</td>
<td>&#952;</td>
</tr>
<tr>
<td>ι</td>
<td>iota</td>
<td>&iota;</td>
<td>&#953;</td>
</tr>
<tr>
<td>κ</td>
<td>kappa</td>
<td>&kappa;</td>
<td>&#954;</td>
</tr>
<tr>
<td>λ</td>
<td>lambda</td>
<td>&lambda;</td>
<td>&#923;</td>
</tr>
<tr>
<td>μ</td>
<td>mu</td>
<td>&mu;</td>
<td>&#956;</td>
</tr>
<tr>
<td>ν</td>
<td>nu</td>
<td>&nu;</td>
<td>&#925;</td>
</tr>
<tr>
<td>ξ</td>
<td>xi</td>
<td>&xi;</td>
<td>&#958;</td>
</tr>
<tr>
<td>ο</td>
<td>omicron</td>
<td>&omicron;</td>
<td>&#959;</td>
</tr>
<tr>
<td>π</td>
<td>pi</td>
<td>&pi;</td>
<td>&#960;</td>
</tr>
<tr>
<td>ρ</td>
<td>rho</td>
<td>&rho;</td>
<td>&#961;</td>
</tr>
<tr>
<td>ς</td>
<td>sigmaf</td>
<td>&sigmaf;</td>
<td>&#962;</td>
</tr>
<tr>
<td>σ</td>
<td>sigma</td>
<td>&sigma;</td>
<td>&#963;</td>
</tr>
<tr>
<td>τ</td>
<td>tau</td>
<td>&tau;</td>
<td>&#964;</td>
</tr>
<tr>
<td>υ</td>
<td>upsilon</td>
<td>&upsilon;</td>
<td>&#965;</td>
</tr>
<tr>
<td>φ</td>
<td>phi</td>
<td>&phi;</td>
<td>&#966;</td>
</tr>
<tr>
<td>χ</td>
<td>chi</td>
<td>&chi;</td>
<td>&#967;</td>
</tr>
<tr>
<td>ψ</td>
<td>psi</td>
<td>&psi;</td>
<td>&#968;</td>
</tr>
<tr>
<td>ω</td>
<td>omega</td>
<td>&omega;</td>
<td>&#969;</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>ϑ</td>
<td>theta symbol</td>
<td>&thetasym;</td>
<td>&#977;</td>
</tr>
<tr>
<td>ϒ</td>
<td>upsilon symbol</td>
<td>&upsih;</td>
<td>&#978;</td>
</tr>
<tr>
<td>ϖ</td>
<td>pi symbol</td>
<td>&piv;</td>
<td>&#982;</td>
</tr>
结果 | 描述 | 实体名称 | 实体编号 |
---|---|---|---|
Α | Alpha | Α |
4.3 HTML 支持的其它实体
<td>&#338;</td>
</tr>
<tr>
<td>œ</td>
<td>small ligature oe</td>
<td>&oelig;</td>
<td>&#339;</td>
</tr>
<tr>
<td>Š</td>
<td>capital S with caron</td>
<td>&Scaron;</td>
<td>&#352;</td>
</tr>
<tr>
<td>š</td>
<td>small S with caron</td>
<td>&scaron;</td>
<td>&#353;</td>
</tr>
<tr>
<td>Ÿ</td>
<td>capital Y with diaeres</td>
<td>&Yuml;</td>
<td>&#376;</td>
</tr>
<tr>
<td>ƒ</td>
<td>f with hook</td>
<td>&fnof;</td>
<td>&#402;</td>
</tr>
<tr>
<td>ˆ</td>
<td>modifier letter circumflex accent</td>
<td>&circ;</td>
<td>&#710;</td>
</tr>
<tr>
<td>˜</td>
<td>small tilde</td>
<td>&tilde;</td>
<td>&#732;</td>
</tr>
<tr>
<td> </td>
<td>en space</td>
<td>&ensp;</td>
<td>&#8194;</td>
</tr>
<tr>
<td> </td>
<td>em space</td>
<td>&emsp;</td>
<td>&#8195;</td>
</tr>
<tr>
<td> </td>
<td>thin space</td>
<td>&thinsp;</td>
<td>&#8201;</td>
</tr>
<tr>
<td></td>
<td>zero width non-joiner</td>
<td>&zwnj;</td>
<td>&#8204;</td>
</tr>
<tr>
<td></td>
<td>zero width joiner</td>
<td>&zwj;</td>
<td>&#8205;</td>
</tr>
<tr>
<td></td>
<td>left-to-right mark</td>
<td>&lrm;</td>
<td>&#8206;</td>
</tr>
<tr>
<td></td>
<td>right-to-left mark</td>
<td>&rlm;</td>
<td>&#8207;</td>
</tr>
<tr>
<td>–</td>
<td>en dash</td>
<td>&ndash;</td>
<td>&#8211;</td>
</tr>
<tr>
<td>—</td>
<td>em dash</td>
<td>&mdash;</td>
<td>&#8212;</td>
</tr>
<tr>
<td>‘</td>
<td>left single quotation mark</td>
<td>&lsquo;</td>
<td>&#8216;</td>
</tr>
<tr>
<td>’</td>
<td>right single quotation mark</td>
<td>&rsquo;</td>
<td>&#8217;</td>
</tr>
<tr>
<td>‚</td>
<td>single low-9 quotation mark</td>
<td>&sbquo;</td>
<td>&#8218;</td>
</tr>
<tr>
<td>“</td>
<td>left double quotation mark</td>
<td>&ldquo;</td>
<td>&#8220;</td>
</tr>
<tr>
<td>”</td>
<td>right double quotation mark</td>
<td>&rdquo;</td>
<td>&#8221;</td>
</tr>
<tr>
<td>„</td>
<td>double low-9 quotation mark</td>
<td>&bdquo;</td>
<td>&#8222;</td>
</tr>
<tr>
<td>†</td>
<td>dagger</td>
<td>&dagger;</td>
<td>&#8224;</td>
</tr>
<tr>
<td>‡</td>
<td>double dagger</td>
<td>&Dagger;</td>
<td>&#8225;</td>
</tr>
<tr>
<td>•</td>
<td>bullet</td>
<td>&bull;</td>
<td>&#8226;</td>
</tr>
<tr>
<td>…</td>
<td>horizontal ellipsis</td>
<td>&hellip;</td>
<td>&#8230;</td>
</tr>
<tr>
<td>‰</td>
<td>per mille </td>
<td>&permil;</td>
<td>&#8240;</td>
</tr>
<tr>
<td>′</td>
<td>minutes</td>
<td>&prime;</td>
<td>&#8242;</td>
</tr>
<tr>
<td>″</td>
<td>seconds</td>
<td>&Prime;</td>
<td>&#8243;</td>
</tr>
<tr>
<td>‹</td>
<td>single left angle quotation</td>
<td>&lsaquo;</td>
<td>&#8249;</td>
</tr>
<tr>
<td>›</td>
<td>single right angle quotation</td>
<td>&rsaquo;</td>
<td>&#8250;</td>
</tr>
<tr>
<td>‾</td>
<td>overline</td>
<td>&oline;</td>
<td>&#8254;</td>
</tr>
<tr>
<td>€</td>
<td>euro</td>
<td>&euro;</td>
<td>&#8364;</td>
</tr>
<tr>
<td>™</td>
<td>trademark</td>
<td>&trade;</td>
<td>&#8482;</td>
</tr>
<tr>
<td>←</td>
<td>left arrow</td>
<td>&larr;</td>
<td>&#8592;</td>
</tr>
<tr>
<td>↑</td>
<td>up arrow</td>
<td>&uarr;</td>
<td>&#8593;</td>
</tr>
<tr>
<td>→</td>
<td>right arrow</td>
<td>&rarr;</td>
<td>&#8594;</td>
</tr>
<tr>
<td>↓</td>
<td>down arrow</td>
<td>&darr;</td>
<td>&#8595;</td>
</tr>
<tr>
<td>↔</td>
<td>left right arrow</td>
<td>&harr;</td>
<td>&#8596;</td>
</tr>
<tr>
<td>↵</td>
<td>carriage return arrow</td>
<td>&crarr;</td>
<td>&#8629;</td>
</tr>
<td>&lceil;</td>
<td>&#8968;</td>
</tr>
<tr>
<td>⌉</td>
<td>right ceiling</td>
<td>&rceil;</td>
<td>&#8969;</td>
</tr>
<tr>
<td>⌊</td>
<td>left floor</td>
<td>&lfloor;</td>
<td>&#8970;</td>
</tr>
<tr>
<td>⌋</td>
<td>right floor</td>
<td>&rfloor;</td>
<td>&#8971;</td>
</tr>
<tr>
<td>◊</td>
<td>lozenge</td>
<td>&loz;</td>
<td>&#9674;</td>
</tr>
<tr>
<td>♠</td>
<td>spade</td>
<td>&spades;</td>
<td>&#9824;</td>
</tr>
<tr>
<td>♣</td>
<td>club</td>
<td>&clubs;</td>
<td>&#9827;</td>
</tr>
<tr>
<td>♥</td>
<td>heart</td>
<td>&hearts;</td>
<td>&#9829;</td>
</tr>
<tr>
<td>♦</td>
<td>diamond</td>
<td>&diams;</td>
<td>&#9830;</td>
</tr>
结果 | 描述 | 实体名称 | 实体编号 |
---|---|---|---|
Œ | capital ligature OE | Œ | |
⌈ | left ceiling |
# 五、xmp xmp 标签之间的内容不会被当作文档内容解析,而会被用等宽字体直接呈现。HTML2 规范建议,本标签中的内容应该具有足够容纳每行80个字母的宽度。
如果嫌实体符号麻烦,可以暂时使用<xmp>
5.1 用法
用<xmp>
、</xmp>
将HTML代码包裹起来。
<xmp>HTML Code</xmp>
示例
:
<xmp><meta>、<img>、<hr></xmp>
Pass
: 已过时,请酌情慎用。
本文参考自W3C手册
*