日期:2009-07-10  浏览次数:20859 次

HTML中的特殊字符

下表给出了插入特殊字符到文档所需要的代码。有的字符具有自己的记忆名,如注册商标字符在HTML中可写为&reg。在没有记忆符时,可直接插入其十进制代码。


字符 十进制代码 HTML 描述

" " " Quotation mark

& & & Ampersand

< &#60; &lt; Less than

> &#62; &gt; Greater than

&#160; &nbsp; Non-breaking space

&iexcl; &#161 &iexcl; Inverted exclamation
&cent; &#162 &cent; Cent sign
&pound; &#163 &pound; Pound sterling
¤ &#164 &curren; General currency sign
&yen; &#165 &yen; Yen sign
&brvbar; &#166 &brvbar; broken vertical bar
§ &#167 &sect; Section sign
¨ &#168 &uml; Di&aelig;resis / umlaut
&copy; &#169 &copy; Copyright
&ordf; &#170 &ordf; Feminine ordinal
&laquo; &#171 &laquo; Left angle quote,
&not; &#172 &not; Not sign
&shy;&shy; &#173 &sny; Soft hyphen
&reg; &#174 &reg; Registered trademark
&macr; &#175 &macr; Macron accent
° &#176 &deg; Degree sign
± &#177 &plusmn; Plus or minus
&sup2; &#178 &sup2; Superscript two
&sup3; &#179 &sup3; Superscript three
&acute; &#180 &acute; Acute accent
&micro; &#181 &micro; Micro sign
&para; &#182 &para; Paragraph sign
· &#183 &middot; Middle dot
&cedil; &#184 &cedil; Cedilla
&sup1; &#185 &supl; Superscript one
&ordm; &#186 &ordm; Masculine ordinal
&raquo; &#187 &raquo; Right angle quote
&frac14; &#188 &frac14; Fraction one quarter
&frac12; &#189 &frac12; Fraction one half
&frac34; &#190 &frac34; Fraction three-quarters
&iquest; &#191 &iquest; Inverted question mark
&Agrave; &#192 &Agrave; Capital A, grave accent
&Aacute; &#193 &Aacute; Capital A, acute accent
&Acirc; &#194 &Acirc; Capital A, circumflex
&Atilde; &#195 &Atilde; Capital A, tilde
&Auml; &#196 &Auml; Capital A, di&aelig;resis / umlau
&Aring; &#197 &Aring; Capital A, ring
&AElig; &#198 &AElig; Capital AE, ligature
&Ccedil; &#199 &Ccedil; Capital C, cedilla
&Egrave; &#200 &Egrave; Ca