HTML ANSI参考

HTML ANSI参考

ANSI(Windows-1252)

在Windows直至Windows 95中,ANSI是默认字符集。

ANSI也称为Windows-1252。


重要的提示

ANSI和ISO-8859-1非常相似。它们仅相差32个字符。

在ANSI中,从128到159的字符用于一些有用的字符,例如欧元符号。

在ISO-8859-1中,这些字符映射为HTML中无用的控制字符。

许多Web开发人员都声明ISO-8859-1并使用这32个值,就像使用Windows-1252一样。

由于这种常见的误解,当声明ISO-8859-1时,浏览器将更改为Windows-1252。可以对任何DOCTYPE:HTML4,HTML5和XHTML完成此操作。


ANSI和ASCII

ANSI的第一部分(实体编号为0-127)是原始ASCII字符集。它包含数字,大写和小写英文字母以及一些特殊字符。

要仔细查看,请研究我们的《完整ASCII参考》


ANSI字符集

字符 实体名称 描述
  0-31   控制字符(请参见下文)
  32   太空
33   感叹号
34 " 引号
35   数字符号
$ 36   美元符号
37   百分号
38 & &符
39   单引号
40   左括号
41   右括号
* 42   星号
+ 43   加号
44   逗号
45   连字符减号
46   停止
/ 47   solidus
0 48   digit zero
1 49   digit one
2 50   digit two
3 51   digit three
4 52   digit four
5 53   digit five
6 54   digit six
7 55   digit seven
8 56   digit eight
9 57   digit nine
: 58   colon
; 59   semicolon
< 60 < less-than sign
= 61   equals sign
> 62 > greater-than sign
? 63   question mark
@ 64   commercial at
A 65   Latin capital letter A
B 66   Latin capital letter B
C 67   Latin capital letter C
D 68   Latin capital letter D
E 69   Latin capital letter E
F 70   Latin capital letter F
G 71   Latin capital letter G
H 72   Latin capital letter H
I 73   Latin capital letter I
J 74   Latin capital letter J
K 75   Latin capital letter K
L 76   Latin capital letter L
M 77   Latin capital letter M
N 78   Latin capital letter N
O 79   Latin capital letter O
P 80   Latin capital letter P
Q 81   Latin capital letter Q
R 82   Latin capital letter R
S 83   Latin capital letter S
T 84   Latin capital letter T
U 85   Latin capital letter U
V 86   Latin capital letter V
W 87   Latin capital letter W
X 88   Latin capital letter X
Y 89   Latin capital letter Y
Z 90   Latin capital letter Z
[ 91   left square bracket
/ 92   reverse solidus
] 93   right square bracket
^ 94   circumflex accent
_ 95   low line
` 96   grave accent
a 97   Latin small letter a
b 98   Latin small letter b
c 99   Latin small letter c
d 100   Latin small letter d
e 101   Latin small letter e
f 102   Latin small letter f
g 103   Latin small letter g
h 104   Latin small letter h
i 105   Latin small letter i
j 106   Latin small letter j
k 107   Latin small letter k
l 108   Latin small letter l
m 109   Latin small letter m
n 110   Latin small letter n
o 111   Latin small letter o
p 112   Latin small letter p
q 113   Latin small letter q
r 114   Latin small letter r
s 115   Latin small letter s
t 116   Latin small letter t
u 117   Latin small letter u
v 118   Latin small letter v
w 119   Latin small letter w
x 120   Latin small letter x
y 121   Latin small letter y
z 122   Latin small letter z
{ 123   left curly bracket
| 124   vertical line
} 125   right curly bracket
~ 126   tilde
  127   Control character (Se below)
128 euro sign
  129   NOT USED
130 single low-9 quotation mark
ƒ 131 ƒ Latin small letter f with hook
132 double low-9 quotation mark
133 horizontal ellipsis
134 dagger
135 double dagger
ˆ 136 ˆ modifier letter circumflex accent
137 per mille sign
Š 138 Š Latin capital letter S with caron
139 single left-pointing angle quotation mark
Œ 140 Œ Latin capital ligature OE
  141   NOT USED
Ž 142 Ž Latin capital letter Z with caron
  143   NOT USED
  144   NOT USED
145 left single quotation mark
146 right single quotation mark
147 left double quotation mark
148 right double quotation mark
149 bullet
150 en dash
151 em dash
˜ 152 ˜ small tilde
153 trade mark sign
š 154 š Latin small letter s with caron
155 single right-pointing angle quotation mark
œ 156 œ Latin small ligature oe
  157   NOT USED
ž 158 ž Latin small letter z with caron
Ÿ 159 Ÿ Latin capital letter Y with diaeresis
  160   no-break space
¡ 161 ¡ inverted exclamation mark
¢ 162 ¢ cent sign
£ 163 £ pound sign
¤ 164 ¤ currency sign
¥ 165 ¥ yen sign
¦ 166 ¦ broken bar
§ 167 § section sign
¨ 168 ¨ diaeresis
© 169 © copyright sign
ª 170 ª feminine ordinal indicator
« 171 « left-pointing double angle quotation mark
¬ 172 ¬ not sign
�­ 173 ­ soft hyphen
® 174 ® registered sign
¯ 175 ¯ macron
° 176 ° degree sign
± 177 ± plus-minus sign
² 178 ² superscript two
³ 179 ³ superscript three
´ 180 ´ acute accent
µ 181 µ micro sign
182 pilcrow sign
· 183 · middle dot
¸ 184 ¸ cedilla
¹ 185 ¹ superscript one
º 186 º masculine ordinal indicator
» 187 » right-pointing double angle quotation mark
¼ 188 ¼ vulgar fraction one quarter
½ 189 ½ vulgar fraction one half
¾ 190 ¾ vulgar fraction three quarters
¿ 191 ¿ inverted question mark
À 192 À Latin capital letter A with grave
Á 193 Á Latin capital letter A with acute
 194  Latin capital letter A with circumflex
à 195 à Latin capital letter A with tilde
Ä 196 Ä Latin capital letter A with diaeresis
Å 197 Å Latin capital letter A with ring above
Æ 198 Æ Latin capital letter AE
Ç 199 Ç Latin capital letter C with cedilla
È 200 È Latin capital letter E with grave
É 201 É Latin capital letter E with acute
Ê 202 Ê Latin capital letter E with circumflex
Ë 203 Ë Latin capital letter E with diaeresis
Ì 204 Ì Latin capital letter I with grave
Í 205 Í Latin capital letter I with acute
Î 206 Î Latin capital letter I with circumflex
Ï 207 Ï Latin capital letter I with diaeresis
Ð 208 Ð Latin capital letter Eth
Ñ 209 Ñ Latin capital letter N with tilde
Ò 210 Ò Latin capital letter O with grave
Ó 211 Ó Latin capital letter O with acute
Ô 212 Ô Latin capital letter O with circumflex
Õ 213 Õ Latin capital letter O with tilde
Ö 214 Ö Latin capital letter O with diaeresis
× 215 × multiplication sign
Ø 216 Ø Latin capital letter O with stroke
Ù 217 Ù Latin capital letter U with grave
Ú 218 Ú Latin capital letter U with acute
Û 219 Û Latin capital letter U with circumflex
Ü 220 Ü Latin capital letter U with diaeresis
Ý 221 Ý Latin capital letter Y with acute
Þ 222 Þ Latin capital letter Thorn
ß 223 ß Latin small letter sharp s
à 224 à Latin small letter a with grave
á 225 á Latin small letter a with acute
â 226 â Latin small letter a with circumflex
ã 227 ã Latin small letter a with tilde
ä 228 ä Latin small letter a with diaeresis
å 229 å Latin small letter a with ring above
æ 230 æ Latin small letter ae
ç 231 ç Latin small letter c with cedilla
è 232 è Latin small letter e with grave
é 233 é Latin small letter e with acute
ê 234 ê Latin small letter e with circumflex
ë 235 ë Latin small letter e with diaeresis
ì 236 ì Latin small letter i with grave
í 237 í Latin small letter i with acute
î 238 î Latin small letter i with circumflex
ï 239 ï Latin small letter i with diaeresis
ð 240 ð Latin small letter eth
ñ 241 ñ Latin small letter n with tilde
ò 242 ò Latin small letter o with grave
ó 243 ó Latin small letter o with acute
ô 244 ô Latin small letter o with circumflex
õ 245 õ Latin small letter o with tilde
ö 246 ö Latin small letter o with diaeresis
÷ 247 ÷ division sign
ø 248 ø Latin small letter o with stroke
ù 249 ù Latin small letter u with grave
ú 250 ú Latin small letter u with acute
û 251 û Latin small letter with circumflex
ü 252 ü Latin small letter u with diaeresis
ý 253 ý Latin small letter y with acute
þ 254 þ 拉丁小写字母刺
ÿ 255 &yuml; 拉丁字母y与diaeresis

ANSI控制字符

ANSI控制字符(范围为00-31,外加127)旨在控制硬件设备。

控制字符(水平制表符,换行符和回车符除外)与HTML文档无关。

 Char Number Description
NUL 00 null character
SOH 01 start of header
STX 02 start of text
ETX 03 end of text
EOT 04 end of transmission
ENQ 05 enquiry
ACK 06 acknowledge
BEL 07 bell (ring)
BS 08 backspace
HT 09 horizontal tab
LF 10 line feed
VT 11 vertical tab
FF 12 form feed
CR 13 carriage return
SO 14 shift out
SI 15 shift in
DLE 16 data link escape
DC1 17 device control 1
DC2 18 device control 2
DC3 19 device control 3
DC4 20 device control 4
NAK 21 negative acknowledge
SYN 22 synchronize
ETB 23 end transmission block
CAN 24 cancel
EM 25 end of medium
SUB 26 substitute
ESC 27 escape
FS 28 file separator
GS 29 group separator
RS 30 record separator
US 31 unit separator
     
DEL 127 delete (rubout)

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/59256.html

(0)
上一篇 2021年8月9日
下一篇 2021年8月9日

相关推荐

发表回复

登录后才能评论