49 lines
2.1 KiB
Markdown
49 lines
2.1 KiB
Markdown
---
|
||
title: HTML Entities
|
||
localeTitle: HTML实体
|
||
---
|
||
# HTML实体
|
||
|
||
## 概观
|
||
|
||
### 什么是HTML实体?
|
||
|
||
HTML实体是用于替换HTML中的保留字符或键盘上未显示的字符的字符。某些字符在HTML中保留。如果在文本中使用小于(<)或大于(>)的符号,浏览器可能会将它们与标记混合在一起。
|
||
|
||
### 它们用于什么?
|
||
|
||
如上所述,HTML实体用于替换HTML保留的保留字符。
|
||
|
||
### 你是如何使用它们的?
|
||
|
||
字符实体看起来类似于:
|
||
|
||
```html
|
||
|
||
<!-- format &[entity_name]; -->
|
||
<!-- example for a less-than sign (<) -->
|
||
<
|
||
```
|
||
|
||
要么
|
||
|
||
```html
|
||
|
||
<!-- &#[entity_number]; -->
|
||
<!-- example for a less-than sign (<) -->
|
||
<
|
||
```
|
||
|
||
## 参考指南
|
||
|
||
这绝不是一个详尽的列表,但如果以下链接不能满足您的需求,下面的链接将能够为您提供更多实体。快乐编码:领结:
|
||
|
||
|人物|实体名称|实体编号|说明| | ------- | ----------- | ----------- | ------- | | | | ` ` |空间| | ! | | `!` |感叹号| | “| | `"` |引号| | #| | `#` |数字符号| | $ | | `$` |美元符号| | ¢| `¢` | `¢` |分号| | €| `€` | `€` |欧元符号| | £| `£` | `£` | GBP标志| | ¥| `¥` | `¥` |日元符号| | %| | `%` |百分号| | &| `&` | `&` | &符号| | '| | `'` |撇号| | (| | `(` |左/右括号| | )| | `)` |结束/右括号| | \* | | `*` |星号| | + | | `+` |加号| | ,| | `,` |逗号| | - | | `-` |连字符| | 。 | | `.` |期间| | / | | `/` |斜线| | ©| `©` | `©` |版权| | ®| `®` | `®` |注册商标| | “| `"` | `"` |双引号| | `>` | `>` | `>` |大于号| | `<` | `<` | `<` |小于标志| | `•` | `•` | `•` |子弹点|
|
||
|
||
#### 更多信息:
|
||
|
||
那里有很多HTML参考文献;一些例子是:
|
||
|
||
* [实体表 - W3](https://dev.w3.org/html5/html-author/charref)
|
||
* [W3学校](https://www.w3schools.com/html/html_entities.asp)
|
||
* [Freeformatter](https://www.freeformatter.com/html-entities.html) |