二维码

HTML 符号实体

HTML 符号实体

HTML 实体在上一章中已经描述过。

许多数学、技术和货币符号在普通键盘上是不存在的。

若要将此类符号添加到 HTML 页面,可以使用实体名称或实体编号 (十进制或十六进制引用)表示符号:

1
2
3
4
5
显示欧元符号:

<p>I will display &`euro`</p>
<p>I will display &#8364;</p>
<p>I will display &#x20AC;</p>

将显示为:

HTML 支持的一些数学符号

字符 号码 实体 描述

| ∀ | &#8704; | &forall; | For all | |

| ∂ | &#8706; | &part; | Partial differential | |

| ∃ | &#8707; | &exist; | There exists | |

| ∅ | &#8709; | &empty; | Empty sets | |

| ∇ | &#8711; | &nabla; | Nabla | |

| ∈ | &#8712; | &isin; | Element of | |

| ∉ | &#8713; | &notin; | Not an element of | |

| ∋ | &#8715; | &ni; | Contains as member | |

| ∏ | &#8719; | &prod; | N-ary product | |

| ∑ | &#8721; | &sum; | N-ary summation | |

[完整的数学符号参考]

HTML 支持的一些希腊字母

字符 号码 实体 描述

| Α | &#913; | &Alpha; | GREEK ALPHA | |

| Β | &#914; | &Beta; | GREEK BETA | |

| Γ | &#915; | &Gamma; | GREEK GAMMA | |

| Δ | &#916; | &Delta; | GREEK DELTA | |

| Ε | &#917; | &Epsilon; | GREEK EPSILON | |

| Ζ | &#918; | &Zeta; | GREEK ZETA | |

[完整的希腊语参考]

HTML 支持的其他一些实体

字符 号码 实体 描述

| © | &#169; | &copy; | COPYRIGHT | |

| ® | &#174; | &reg; | REGISTERED | |

| € | &#8364; | &euro; | EURO SIGN | |

| ™ | &#8482; | &trade; | TRADEMARK | |

| ← | &#8592; | &larr; | LEFT ARROW | |

| ↑ | &#8593; | &uarr; | UP ARROW | |

| → | &#8594; | &rarr; | RIGHT ARROW | |

| ↓ | &#8595; | &darr; | DOWN ARROW | |

| ♠ | &#9824; | &spades; | SPADE | |

| ♣ | &#9827; | &clubs; | CLUB | |

| ♥ | &#9829; | &hearts; | HEART | |

| ♦ | &#9830; | &diams; | DIAMOND | |

[完整的货币参考]

[完整箭头参考]

[完整符号参考]