小码哥的IT人生

UTF-8 C1 控制字符和拉丁文-1补充

HTML基础 2022-06-03 23:44:20小码哥的IT人生shichen

UTF-8 C1 控制字符和拉丁文-1补充

范围:十进制 128-255,十六进制 0080-00FF

如果您希望以 HTML 显示这些字符中的任何一个,则可以使用下表中的 HTML 实体。

如果字符没有 HTML 实体,则可以使用十进制(dec)或十六进制(hex)引用。

示例代码:

<p>我会显示 &pound;</p>
<p>我会显示 &#163;</p>
<p>我会显示 &#x00A3;</p>

将显示为:

我会显示 £
我会显示 £
我会显示 £

 

完整实例【亲自试一试】:

<!DOCTYPE html>
<html>
<body>
<p>我会显示 £</p>
<p>我会显示 £</p>
<p>我会显示 £</p>
</body>
</html>

可以使用本站在线JavaScript测试工具测试上述代码运行效果:http://www.phpcodeweb.com/runjs.html

字符 十进制 十六进制 实体 名称
  160 00A0 &nbsp; NO-BREAK SPACE
¡ 161 00A1 &iexcl; INVERTED EXCLAMATION MARK
¢ 162 00A2 &cent; CENT SIGN
£ 163 00A3 &pound; POUND SIGN
¤ 164 00A4 &curren; CURRENCY SIGN
¥ 165 00A5 &yen; YEN SIGN
¦ 166 00A6 &brvbar; BROKEN BAR
§ 167 00A7 &sect; SECTION SIGN
¨ 168 00A8 &uml; DIAERESIS
© 169 00A9 &copy; COPYRIGHT SIGN
ª 170 00AA &ordf; FEMININE ORDINAL INDICATOR
« 171 00AB &laquo; LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
¬ 172 00AC &not; NOT SIGN
­ 173 00AD &shy; SOFT HYPHEN
® 174 00AE &reg; REGISTERED SIGN
¯ 175 00AF &macr; MACRON
° 176 00B0 &deg; DEGREE SIGN
± 177 00B1 &plusmn; PLUS-MINUS SIGN
² 178 00B2 &sup2; SUPERSCRIPT TWO
³ 179 00B3 &sup3; SUPERSCRIPT THREE
´ 180 00B4 &acute; ACUTE ACCENT
µ 181 00B5 &micro; MICRO SIGN
182 00B6 &para; PILCROW SIGN
· 183 00B7 &middot; MIDDLE DOT
¸ 184 00B8 &cedil; CEDILLA
¹ 185 00B9 &sup1; SUPERSCRIPT ONE
º 186 00BA &ordm; MASCULINE ORDINAL INDICATOR
» 187 00BB &raquo; RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
¼ 188 00BC &frac14; VULGAR FRACTION ONE QUARTER
½ 189 00BD &frac12; VULGAR FRACTION ONE HALF
¾ 190 00BE &frac34; VULGAR FRACTION THREE QUARTERS
¿ 191 00BF &iquest; INVERTED QUESTION MARK
À 192 00C0 &Agrave; LATIN CAPITAL LETTER A WITH GRAVE
Á 193 00C1 &Aacute; LATIN CAPITAL LETTER A WITH ACUTE
 194 00C2 &Acirc; LATIN CAPITAL LETTER A WITH CIRCUMFLEX
à 195 00C3 &Atilde; LATIN CAPITAL LETTER A WITH TILDE
Ä 196 00C4 &Auml; LATIN CAPITAL LETTER A WITH DIAERESIS
Å 197 00C5 &Aring; LATIN CAPITAL LETTER A WITH RING ABOVE
Æ 198 00C6 &AElig; LATIN CAPITAL LETTER AE
Ç 199 00C7 &Ccedil; LATIN CAPITAL LETTER C WITH CEDILLA
È 200 00C8 &Egrave; LATIN CAPITAL LETTER E WITH GRAVE
É 201 00C9 &Eacute; LATIN CAPITAL LETTER E WITH ACUTE
Ê 202 00CA &Ecirc; LATIN CAPITAL LETTER E WITH CIRCUMFLEX
Ë 203 00CB &Euml; LATIN CAPITAL LETTER E WITH DIAERESIS
Ì 204 00CC &Igrave; LATIN CAPITAL LETTER I WITH GRAVE
Í 205 00CD &Iacute; LATIN CAPITAL LETTER I WITH ACUTE
Î 206 00CE &Icirc; LATIN CAPITAL LETTER I WITH CIRCUMFLEX
Ï 207 00CF &Iuml; LATIN CAPITAL LETTER I WITH DIAERESIS
Ð 208 00D0 &ETH; LATIN CAPITAL LETTER ETH
Ñ 209 00D1 &Ntilde; LATIN CAPITAL LETTER N WITH TILDE
Ò 210 00D2 &Ograve; LATIN CAPITAL LETTER O WITH GRAVE
Ó 211 00D3 &Oacute; LATIN CAPITAL LETTER O WITH ACUTE
Ô 212 00D4 &Ocirc; LATIN CAPITAL LETTER O WITH CIRCUMFLEX
Õ 213 00D5 &Otilde; LATIN CAPITAL LETTER O WITH TILDE
Ö 214 00D6 &Ouml; LATIN CAPITAL LETTER O WITH DIAERESIS
× 215 00D7 &times; MULTIPLICATION SIGN
Ø 216 00D8 &Oslash; LATIN CAPITAL LETTER O WITH STROKE
Ù 217 00D9 &Ugrave; LATIN CAPITAL LETTER U WITH GRAVE
Ú 218 00DA &Uacute; LATIN CAPITAL LETTER U WITH ACUTE
Û 219 00DB &Ucirc; LATIN CAPITAL LETTER U WITH CIRCUMFLEX
Ü 220 00DC &Uuml; LATIN CAPITAL LETTER U WITH DIAERESIS
Ý 221 00DD &Yacute; LATIN CAPITAL LETTER Y WITH ACUTE
Þ 222 00DE &THORN; LATIN CAPITAL LETTER THORN
ß 223 00DF &szlig; LATIN SMALL LETTER SHARP S
à 224 00E0 &agrave; LATIN SMALL LETTER A WITH GRAVE
á 225 00E1 &aacute; LATIN SMALL LETTER A WITH ACUTE
â 226 00E2 &acirc; LATIN SMALL LETTER A WITH CIRCUMFLEX
ã 227 00E3 &atilde; LATIN SMALL LETTER A WITH TILDE
ä 228 00E4 &auml; LATIN SMALL LETTER A WITH DIAERESIS
å 229 00E5 &aring; LATIN SMALL LETTER A WITH RING ABOVE
æ 230 00E6 &aelig; LATIN SMALL LETTER AE
ç 231 00E7 &ccedil; LATIN SMALL LETTER C WITH CEDILLA
è 232 00E8 &egrave; LATIN SMALL LETTER E WITH GRAVE
é 233 00E9 &eacute; LATIN SMALL LETTER E WITH ACUTE
ê 234 00EA &ecirc; LATIN SMALL LETTER E WITH CIRCUMFLEX
ë 235 00EB &euml; LATIN SMALL LETTER E WITH DIAERESIS
ì 236 00EC &igrave; LATIN SMALL LETTER I WITH GRAVE
í 237 00ED &iacute; LATIN SMALL LETTER I WITH ACUTE
î 238 00EE &icirc; LATIN SMALL LETTER I WITH CIRCUMFLEX
ï 239 00EF &iuml; LATIN SMALL LETTER I WITH DIAERESIS
ð 240 00F0 &eth; LATIN SMALL LETTER ETH
ñ 241 00F1 &ntilde; LATIN SMALL LETTER N WITH TILDE
ò 242 00F2 &ograve; LATIN SMALL LETTER O WITH GRAVE
ó 243 00F3 &oacute; LATIN SMALL LETTER O WITH ACUTE
ô 244 00F4 &ocirc; LATIN SMALL LETTER O WITH CIRCUMFLEX
õ 245 00F5 &otilde; LATIN SMALL LETTER O WITH TILDE
ö 246 00F6 &ouml; LATIN SMALL LETTER O WITH DIAERESIS
÷ 247 00F7 &divide; DIVISION SIGN
ø 248 00F8 &oslash; LATIN SMALL LETTER O WITH STROKE
ù 249 00F9 &ugrave; LATIN SMALL LETTER U WITH GRAVE
ú 250 00FA &uacute; LATIN SMALL LETTER U WITH ACUTE
û 251 00FB &ucirc; LATIN SMALL LETTER U WITH CIRCUMFLEX
ü 252 00FC &uuml; LATIN SMALL LETTER U WITH DIAERESIS
ý 253 00FD &yacute; LATIN SMALL LETTER Y WITH ACUTE
þ 254 00FE &thorn; LATIN SMALL LETTER THORN
ÿ 255 00FF &yuml; LATIN SMALL LETTER Y WITH DIAERESIS

C1 控制字符

控制字符最初被设计为控制硬件设备。

不应在 HTML 中显示控制字符。

但是,由于它们被定义为字符,因此在 Windows 使用的 ANSI 字符集中,如果您使用 Windows,则可能会显示它们。

字符 十进制 十六进制 控制字符
128 0080 CONTROL
 129 0081 CONTROL
130 0082 BREAK PERMITTED HERE
ƒ 131 0083 NO BREAK HERE
132 0084 INDEX
133 0085 NEXT LINE (NEL)
134 0086 START OF SELECTED AREA
135 0087 END OF SELECTED AREA
ˆ 136 0088 CHARACTER TABULATION SET
137 0089 CHARACTER TABULATION WITH JUSTIFICATION
Š 138 008A LINE TABULATION SET
139 008B PARTIAL LINE FORWARD
Œ 140 008C PARTIAL LINE BACKWARD
 141 008D REVERSE LINE FEED
Ž 142 008E SINGLE SHIFT TWO
 143 008F SINGLE SHIFT THREE
 144 0090 DEVICE CONTROL STRING
145 0091 PRIVATE USE ONE
146 0092 PRIVATE USE TWO
147 0093 SET TRANSMIT STATE
148 0094 CANCEL CHARACTER
149 0095 MESSAGE WAITING
150 0096 START OF GUARDED AREA
151 0097 END OF GUARDED AREA
˜ 152 0098 START OF STRING
153 0099 CONTROL
š 154 009A SINGLE CHARACTER INTRODUCER
155 009B CONTROL SEQUENCE INTRODUCER
œ 156 009C STRING TERMINATOR
 157 009D OPERATING SYSTEM COMMAND
ž 158 009E PRIVACY MESSAGE
Ÿ 159 009F APPLICATION PROGRAM COMMAND

版权所有 © 小码哥的IT人生
Copyright © phpcodeweb All Rights Reserved
ICP备案号:苏ICP备17019232号-2  

苏公网安备 32030202000762号

© 2021-2024