HTML 支持的常用转义字符或实体
字符转义
使用 Markdown 语法进行写作的时候,免不了会遇到一些特殊字符处理的问题,以下是一个常用的 HTML 中的转义字符列表,方便查阅。此文与其说是 Markdown 书写进阶参考博文,倒不如直接说 HTML 的查阅文档,啧啧。
(1). 7 比特 可显示的 ASCII 代码
结果
描述
实体编号
space
!
exclamation mark
!
"
quotation mark
"
#
number sign
#
$
dollar sign
$
%
percent sign
%
&
ampersand
&
'
apostrophe
'
(
left parenthesis
(
)
right parenthesis
)
*
asterisk
*
+
plus sign
+
,
comma
,
-
hyphen
-
.
period
.
/
slash
/
0
digit 0
0
1
digit 1
1
2
digit 2
2
3
digit 3
3
4
digit 4
4
5
digit 5
5
6
digit 6
6
7
digit 7
7
8
digit 8
8
9
digit 9
9
:
colon
:
;
semicolon
;
<
less-than
<
=
equals-to
=
>
greater-than
>
?
question mark
?
@
at sign
@
A
uppercase A
A
B
uppercase B
B
C
uppercase C
C
D
uppercase D
D
E
uppercase E
E
F
uppercase F
F
G
uppercase G
G
H
uppercase H
H
I
uppercase I
I
J
uppercase J
J
K
uppercase K
K
L
uppercase L
L
M
uppercase M
M
N
uppercase N
N
O
uppercase O
O
P
uppercase P
P
Q
uppercase Q
Q
R
uppercase R
R
S
uppercase S
S
T
uppercase T
T
U
uppercase U
U
V
uppercase V
V
W
uppercase W
W
X
uppercase X
X
Y
uppercase Y
Y
Z
uppercase Z
Z
[
left square bracket
[
\
backslash
\
]
right square bracket
]
^
caret
^
_
underscore
_
`
grave accent
`
a
lowercase a
a
b
lowercase b
b
c
lowercase c
c
d
lowercase d
d
e
lowercase e
e
f
lowercase f
f
g
lowercase g
g
h
lowercase h
h
i
lowercase i
i
j
lowercase j
j
k
lowercase k
k
l
lowercase l
l
m
lowercase m
m
n
lowercase n
n
o
lowercase o
o
p
lowercase p
p
q
lowercase q
q
r
lowercase r
r
s
lowercase s
s
t
lowercase t
t
u
lowercase u
u
v
lowercase v
v
w
lowercase w
w
x
lowercase x
x
y
lowercase y
y
z
lowercase z
z
{
left curly brace
{
|
vertical bar
|
}
right curly brace
}
~
tilde
~
(2). 7 比特 设备控制 ASCII代码
结果
描述
实体编号
NUL
null character
SOH
start of header
STX
start of text
ETX
end of text
EOT
end of transmission
ENQ
enquiry
ACK
acknowledge
BEL
bell (ring)
BS
backspace
HT
horizontal tab
LF
line feed
VT
vertical tab
FF
form feed
CR
carriage return
SO
shift out
SI
shift in
DLE
data link escape
DC1
device control 1
DC2
device control 2
DC3
device control 3
DC4
device control 4
NAK
negative acknowledge
SYN
synchronize
ETB
end transmission block
CAN
cancel
EM
end of medium
SUB
substitute
ESC
escape
FS
file separator
GS
group separator
RS
record separator
US
unit separator
DEL
delete (rubout)
ASCII设备控制代码最初被设计为用来控制诸如打印机和磁带驱动器之类的硬件设备。在HTML文档中这些代码不会起任何作用。
结果
描述
实体编号
NUL
null character
SOH
start of header
STX
start of text
ETX
end of text
EOT
end of transmission
ENQ
enquiry
ACK
acknowledge
BEL
bell (ring)
BS
backspace
HT
horizontal tab
LF
line feed
VT
vertical tab
FF
form feed
CR
carriage return
SO
shift out
SI
shift in
DLE
data link escape
DC1
device control 1
DC2
device control 2
DC3
device control 3
DC4
device control 4
NAK
negative acknowledge
SYN
synchronize
ETB
end transmission block
CAN
cancel
EM
end of medium
SUB
substitute
ESC
escape
FS
file separator
GS
group separator
RS
record separator
US
unit separator
DEL
delete (rubout)
(3). 带有实体名称的 ASCII 实体
结果
描述
实体名称
实体编号
"
quotation mark
"
"
'
apostrophe
'
'
&
ampersand
&
&
<
less-than
<
<
>
greater-than
>
>
(4). 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
÷
÷
(5). ISO 8859-1 字符实体
结果
描述
实体名称
实体编号
À
capital a, grave accent
À
À
Á
capital a, acute accent
Á
Á
Â
capital a, circumflex accent
Â
Â
Ã
capital a, tilde
Ã
Ã
Ä
capital a, umlaut mark
Ä
Ä
Å
capital a, ring
Å
Å
Æ
capital ae
Æ
Æ
Ç
capital c, cedilla
Ç
Ç
È
capital e, grave accent
È
È
É
capital e, acute accent
É
É
Ê
capital e, circumflex accent
Ê
Ê
Ë
capital e, umlaut mark
Ë
Ë
Ì
capital i, grave accent
Ì
Ì
Í
capital i, acute accent
Í
Í
Î
capital i, circumflex accent
Î
Î
Ï
capital i, umlaut mark
Ï
Ï
Ð
capital eth, Icelandic
Ð
Ð
Ñ
capital n, tilde
Ñ
Ñ
Ò
capital o, grave accent
Ò
Ò
Ó
capital o, acute accent
Ó
Ó
Ô
capital o, circumflex accent
Ô
Ô
Õ
capital o, tilde
Õ
Õ
Ö
capital o, umlaut mark
Ö
Ö
Ø
capital o, slash
Ø
Ø
Ù
capital u, grave accent
Ù
Ù
Ú
capital u, acute accent
Ú
Ú
Û
capital u, circumflex accent
Û
Û
Ü
capital u, umlaut mark
Ü
Ü
Ý
capital y, acute accent
Ý
Ý
Þ
capital THORN, Icelandic
Þ
Þ
ß
small sharp s, German
ß
ß
à
small a, grave accent
à
à
á
small a, acute accent
á
á
â
small a, circumflex accent
â
â
ã
small a, tilde
ã
ã
ä
small a, umlaut mark
ä
ä
å
small a, ring
å
å
æ
small ae
æ
æ
ç
small c, cedilla
ç
ç
è
small e, grave accent
è
è
é
small e, acute accent
é
é
ê
small e, circumflex accent
ê
ê
ë
small e, umlaut mark
ë
ë
ì
small i, grave accent
ì
ì
í
small i, acute accent
í
í
î
small i, circumflex accent
î
î
ï
small i, umlaut mark
ï
ï
ð
small eth, Icelandic
ð
ð
ñ
small n, tilde
ñ
ñ
ò
small o, grave accent
ò
ò
ó
small o, acute accent
ó
ó
ô
small o, circumflex accent
ô
ô
õ
small o, tilde
õ
õ
ö
small o, umlaut mark
ö
ö
ø
small o, slash
ø
ø
ù
small u, grave accent
ù
ù
ú
small u, acute accent
ú
ú
û
small u, circumflex accent
û
û
ü
small u, umlaut mark
ü
ü
ý
small y, acute accent
ý
ý
þ
small thorn, Icelandic
þ
þ
ÿ
small y, umlaut mark
ÿ
ÿ
(6). HTML 支持的数学符号
结果
描述
实体名称
实体编号
∀
for all
∀
∀
∂
part
∂
∂
∃
exists
&exists;
∃
∅
empty
∅
∅
∇
nabla
∇
∇
∈
isin
∈
∈
∉
notin
∉
∉
∋
ni
∋
∋
∏
prod
∏
∏
∑
sum
∑
∑
−
minus
−
−
∗
lowast
∗
∗
√
square root
√
√
∝
proportional to
∝
∝
∞
infinity
∞
∞
∠
angle
∠
∠
∧
and
∧
∧
∨
or
∨
∨
∩
cap
∩
∩
∪
cup
∪
∪
∫
integral
∫
∫
∴
therefore
∴
∴
∼
simular to
∼
∼
≅
approximately equal
≅
≅
≈
almost equal
≈
≈
≠
not equal
≠
≠
≡
equivalent
≡
≡
≤
less or equal
≤
≤
≥
greater or equal
≥
≥
⊂
subset of
⊂
⊂
⊃
superset of
⊃
⊃
⊄
not subset of
⊄
⊄
⊆
subset or equal
⊆
⊆
⊇
superset or equal
⊇
⊇
⊕
circled plus
⊕
⊕
⊗
cirled times
⊗
⊗
⊥
perpendicular
⊥
⊥
⋅
dot operator
⋅
⋅
(7). HTML 支持的希腊字母
结果
描述
实体名称
实体编号
Α
Alpha
Α
Α
Β
Beta
Β
Β
Γ
Gamma
Γ
Γ
Δ
Delta
Δ
Δ
Ε
Epsilon
Ε
Ε
Ζ
Zeta
Ζ
Ζ
Η
Eta
Η
Η
Θ
Theta
Θ
Θ
Ι
Iota
Ι
Ι
Κ
Kappa
Κ
Κ
Λ
Lambda
Λ
Λ
Μ
Mu
Μ
Μ
Ν
Nu
Ν
Ν
Ξ
Xi
Ξ
Ξ
Ο
Omicron
Ο
Ο
Π
Pi
Π
Π
Ρ
Rho
Ρ
Ρ
Sigmaf
undefined
Σ
Sigma
Σ
Σ
Τ
Tau
Τ
Τ
Υ
Upsilon
Υ
Υ
Φ
Phi
Φ
Φ
Χ
Chi
Χ
Χ
Ψ
Psi
Ψ
Ψ
Ω
Omega
Ω
Ω
α
alpha
α
α
β
beta
β
β
γ
gamma
γ
γ
δ
delta
δ
δ
ε
epsilon
ε
ε
ζ
zeta
ζ
ζ
η
eta
η
η
θ
theta
θ
θ
ι
iota
ι
ι
κ
kappa
κ
κ
λ
lambda
λ
Λ
μ
mu
μ
μ
ν
nu
ν
Ν
ξ
xi
ξ
ξ
ο
omicron
ο
ο
π
pi
π
π
ρ
rho
ρ
ρ
ς
sigmaf
ς
ς
σ
sigma
σ
σ
τ
tau
τ
τ
υ
upsilon
υ
υ
φ
phi
φ
φ
χ
chi
χ
χ
ψ
psi
ψ
ψ
ω
omega
ω
ω
ϑ
theta symbol
ϑ
ϑ
ϒ
upsilon symbol
ϒ
ϒ
ϖ
pi symbol
ϖ
ϖ
(8). HTML 支持的其他实体
结果
描述
实体名称
实体编号
Œ
capital ligature OE
Œ
Œ
œ
small ligature oe
œ
œ
Š
capital S with caron
Š
Š
š
small S with caron
š
š
Ÿ
capital Y with diaeres
Ÿ
Ÿ
ƒ
f with hook
ƒ
ƒ
ˆ
modifier letter circumflex accent
ˆ
ˆ
˜
small tilde
˜
˜
en space
em space
thin space
zero width non-joiner
zero width joiner
left-to-right mark
right-to-left mark
–
en dash
–
–
—
em dash
—
—
‘
left single quotation mark
‘
‘
’
right single quotation mark
’
’
‚
single low-9 quotation mark
‚
‚
“
left double quotation mark
“
“
”
right double quotation mark
”
”
„
double low-9 quotation mark
„
„
†
dagger
†
†
‡
double dagger
‡
‡
•
bullet
•
•
…
horizontal ellipsis
…
…
‰
per mille
‰
‰
′
minutes
′
′
″
seconds
″
″
‹
single left angle quotation
‹
‹
›
single right angle quotation
›
›
‾
overline
‾
‾
€
euro
€
€
™
trademark
™
™
←
left arrow
←
←
↑
up arrow
↑
↑
→
right arrow
→
→
↓
down arrow
↓
↓
↔
left right arrow
↔
↔
↵
carriage return arrow
↵
↵
⌈
left ceiling
⌈
⌈
⌉
right ceiling
⌉
⌉
⌊
left floor
⌊
⌊
⌋
right floor
⌋
⌋
◊
lozenge
◊
◊
♠
spade
♠
♠
♣
club
♣
♣
♥
heart
♥
♥
♦
diamond
♦
♦
(9). 其它
结果
描述
实体编号
中文全角空白字符
还有一个我个人写文章时用到的中文全角字符:
结果
描述
实体编号
中文全角空白字符
(10). 全部 UTF-8 字符集
以上只是 HTML 相关的字符或实体,但是如果以上没有列出我们想要的字符呢?那就通过以下这个 HTML 文件来进行查看吧(可能会比较慢,因为循环了6万多次,可在加载后存储静态网页或者使用解释型脚本语言动态生成 HTML,可作为手边得力的参考文档):
UTF-8 字符集var html = [];
html.push("
html.push("
符号编码符号编码符号编码符号编码");for(var i = 1; i <= 65536; i++){
if(i % 4 == 1){
html.push("
");}
html.push("
" + i + ";&#" + i + ";");if(i % 4 == 0){
html.push("
");}
}
document.write(html.join(""));
关于