您的位置:首页 > Web前端 > HTML

常用特殊符号的HTML代码(HTML字符实体)

2014-01-11 22:08 549 查看
适当使用实体,对页面开发有相当大的帮助。

自己收集的一些常用的以实体代替与HTML语法相同的字符,避免浏览解析错误。

常用HTML字符实体(建议使用实体):
字符名称实体名实体数
圆点%u25CF;
*星号
双引号""
&&符&&
<左尖括号(小于号)<<
>右尖括号(大于号)>>
空格  
中文全角空格 
HTML 4.01 支持 ISO 8859-1 (Latin-1) 字符集。

ISO-8859-1 的较低部分(从 1 到 127 之间的代码)是最初的 7 比特 ASCII。

ISO-8859-1 的较高部分(从 160 到 255 之间的代码)全都有实体名称。

这些符号中的大多数都可以在不进行实体引用的情况下使用,但是实体名称或实体编号为那些不容易通过键盘键入的符号提供了表达的方法。

注释:实体名称对大小写敏感。

带有实体名称的 ASCII 实体

结果描述实体名称实体编号
"quotation mark""
'apostrophe ''
&ampersand&&
<less-than<<
>greater-than>>

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÷÷

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ÿÿ
本字符实体参考手册包括了数学符号、希腊字符、各种箭头记号、科技符号以及形状。

注释:实体名称对大小写敏感。

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

HTML 支持的希腊字母

结果描述实体名称实体编号
ΑAlphaΑΑ
ΒBetaΒΒ
ΓGammaΓΓ
ΔDeltaΔΔ
ΕEpsilonΕΕ
ΖZetaΖΖ
ΗEtaΗΗ
ΘThetaΘΘ
ΙIotaΙΙ
ΚKappaΚΚ
ΛLambdaΛΛ
ΜMuΜΜ
ΝNuΝΝ
ΞXiΞΞ
ΟOmicronΟΟ
ΠPiΠΠ
ΡRhoΡΡ
Sigmafundefined
Σ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ϖϖ

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
下面是用 URL 编码形式表示的 ASCII 字符(十六进制格式)。

十六进制格式用于在浏览器和插件中显示非标准的字母和字符。

URL 编码 - 从 %00 到 %8f

ASCII ValueURL-encodeASCII ValueURL-encodeASCII ValueURL-encode
æ%000%30`%60
%011%31a%61
%022%32b%62
%033%33c%63
%044%34d%64
%055%35e%65
%066%36f%66
%077%37g%67
backspace%088%38h%68
tab%099%39i%69
linefeed%0a:%3aj%6a
%0b;%3bk%6b
%0c<%3cl%6c
c return%0d=%3dm%6d
%0e>%3en%6e
%0f?%3fo%6f
%10@%40p%70
%11A%41q%71
%12B%42r%72
%13C%43s%73
%14D%44t%74
%15E%45u%75
%16F%46v%76
%17G%47w%77
%18H%48x%78
%19I%49y%79
%1aJ%4az%7a
%1bK%4b{%7b
%1cL%4c|%7c
%1dM%4d}%7d
%1eN%4e~%7e
%1fO%4f%7f
space%20P%50%80
!%21Q%51%81
"%22R%52%82
#%23S%53ƒ%83
$%24T%54%84
%%25U%55%85
&%26V%56%86
'%27W%57%87
(%28X%58ˆ%88
)%29Y%59%89
*%2aZ%5aŠ%8a
+%2b[%5b%8b
,%2c\%5cŒ%8c
-%2d]%5d%8d
.%2e^%5eŽ%8e
/%2f_%5f%8f

URL 编码 - 从 %90 到 %ff

ASCII ValueURL-encodeASCII ValueURL-encodeASCII ValueURL-encode
%90À%c0ð%f0
%91Á%c1ñ%f1
%92Â%c2ò%f2
%93Ã%c3ó%f3
%94Ä%c4ô%f4
%95Å%c5õ%f5
%96Æ%c6ö%f6
%97Ç%c7÷%f7
˜%98È%c8ø%f8
%99É%c9ù%f9
š%9aÊ%caú%fa
%9bË%cbû%fb
œ%9cÌ%ccü%fc
%9dÍ%cdý%fd
ž%9eÎ%ceþ%fe
Ÿ%9fÏ%cfÿ%ff
%a0Ð%d0
¡%a1Ñ%d1
¢%a2Ò%d2
£%a3Ó%d3
%a4Ô%d4
¥%a5Õ%d5
|%a6Ö%d6
§%a7%d7
¨%a8Ø%d8
©%a9Ù%d9
ª%aaÚ%da
«%abÛ%db
¬%acÜ%dc
¯%adÝ%dd
®%aeÞ%de
¯%afß%df
°%b0à%e0
±%b1á%e1
²%b2â%e2
³%b3ã%e3
´%b4ä%e4
µ%b5å%e5
%b6æ%e6
·%b7ç%e7
¸%b8è%e8
¹%b9é%e9
º%baê%ea
»%bbë%eb
¼%bcì%ec
½%bdí%ed
¾%beî%ee
¿%bfï%ef
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: