最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【转】HTML中常见形如&#number;的东西叫做 字符实体引用,简称引用,代表一个对应的unicode字符

HTML crifan 1134浏览 0评论

【转】HTML中常见形如&#number;的东西叫做 字符实体引用,简称引用,代表一个对应的unicode字符

http://www.htmlhelp.com/reference/html40/entities/

 

英文解释的很清楚,就不翻译了,自己看:

Entities

Character entity references, or entities for short, provide a method of entering characters that cannot be expressed in the document’s character encoding or that cannot easily be entered on a keyboard. Entities are case-sensitive and take the form &name;. Examples of entities include © for the copyright symbol and Α for the Greek capital letter alpha.

In addition to entities, authors can use numeric character references. While entities are limited to a subset of Unicode characters, numeric character references can specify any character. Numeric character references may be given in decimal or hexadecimal, though browser support is stronger for decimal references. Decimal references are of the form &#number; while hexadecimal references take the case-insensitive form &#xnumber;. Examples of numeric character references include © or © for the copyright symbol, Α or Α for the Greek capital letter alpha, and ا or ا for the Arabic letter alef.

The following documents feature tables of the character entity references in HTML 4, along with the numeric character reference in decimal and hexadecimal. A rendering of each character reference is provided so that users may check their browsers’ compliance.

 

下面这几个链接,包括了对应的那些字符所对应的实体引用:

  • Latin-1 Entities
  • Symbols and Greek Letters
  • Other Special Characters
  • 下面摘录一些常见的:

    Character< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />

    Entity

    Decimal

    Hex

    Rendering in Your Browser

    Entity

    Decimal

    Hex

    no-break space = non-breaking space

    &nbsp;

    &#160;

    &#xA0;

    cent sign

    &cent;

    &#162;

    &#xA2;

    ?

    ?

    ?

    pound sign

    &pound;

    &#163;

    &#xA3;

    ?

    ?

    ?

    currency sign

    &curren;

    &#164;

    &#xA4;

    ¤

    ¤

    ¤

    yen sign = yuan sign

    &yen;

    &#165;

    &#xA5;

    ?

    ?

    ?

    section sign

    &sect;

    &#167;

    &#xA7;

    §

    §

    §

    diaeresis = spacing diaeresis

    &uml;

    &#168;

    &#xA8;

    ¨

    ¨

    ¨

    copyright sign

    &copy;

    &#169;

    &#xA9;

    ?

    ?

    ?

    registered sign = registered trade mark sign

    &reg;

    &#174;

    &#xAE;

    ?

    ?

    ?

    degree sign

    &deg;

    &#176;

    &#xB0;

    °

    °

    °

    plus-minus sign = plus-or-minus sign

    &plusmn;

    &#177;

    &#xB1;

    ±

    ±

    ±

    acute accent = spacing acute

    &acute;

    &#180;

    &#xB4;

    ?

    ?

    ?

    micro sign

    &micro;

    &#181;

    &#xB5;

    ?

    ?

    ?

    pilcrow sign = paragraph sign

    &para;

    &#182;

    &#xB6;

    ?

    ?

    ?

    middle dot = Georgian comma = Greek middle dot

    &middot;

    &#183;

    &#xB7;

    ·

    ·

    ·

    masculine ordinal indicator

    &ordm;

    &#186;

    &#xBA;

    ?

    ?

    ?

    right-pointing double angle quotation mark = right pointing guillemet

    &raquo;

    &#187;

    &#xBB;

    ?

    ?

    ?

    vulgar fraction one quarter = fraction one quarter

    &frac14;

    &#188;

    &#xBC;

    ?

    ?

    ?

    vulgar fraction one half = fraction one half

    &frac12;

    &#189;

    &#xBD;

    ?

    ?

    ?

    vulgar fraction three quarters = fraction three quarters

    &frac34;

    &#190;

    &#xBE;

    ?

    ?

    ?

    inverted question mark = turned question mark

    &iquest;

    &#191;

    &#xBF;

    ?

    ?

    ?

    multiplication sign

    &times;

    &#215;

    &#xD7;

    ×

    ×

    ×

    Latin capital letter O with stroke = Latin capital letter O slash

    &Oslash;

    &#216;

    &#xD8;

    ?

    ?

    ?

    Latin small letter sharp s = ess-zed

    &szlig;

    &#223;

    &#xDF;

    ?

    ?

    ?

    division sign

    &divide;

    &#247;

    &#xF7;

    ÷

    ÷

    ÷

    Latin small letter o with stroke = Latin small letter o slash

    &oslash;

    &#248;

    &#xF8;

    ?

    ?

    ?

     

    quotation mark = APL quote

    &quot;

    &#34;

    &#x22;

    ampersand

    &amp;

    &#38;

    &#x26;

    &

    &

    &

    less-than sign

    &lt;

    &#60;

    &#x3C;

    greater-than sign

    &gt;

    &#62;

    &#x3E;

    转载请注明:在路上 » 【转】HTML中常见形如&#number;的东西叫做 字符实体引用,简称引用,代表一个对应的unicode字符

    发表我的评论
    取消评论

    表情

    Hi,您需要填写昵称和邮箱!

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址
    56 queries in 0.118 seconds, using 19.09MB memory