網路城邦
上一篇 回創作列表 下一篇   字體:
語言THML中的 特殊實體(特殊字元)→Special Entities 轉載
2008/12/07 19:40:16瀏覽2363|回應0|推薦6

Special Entities

The following table gives the character entity reference, decimal character reference, and hexadecimal character reference for markup-significant and internationalization characters, as well as the rendering of each in your browser. Glyphs of the characters are available at the Unicode Consortium.

With the exception of HTML 2.0's ", &, <, and >, these entities are all new in HTML 4.0 and may not be supported by old browsers. Support in recent browsers is good.

CharacterEntityDecimalHexRendering in Your Browser
EntityDecimalHex
quotation mark = APL quote""""""
ampersand&&&&&&
less-than sign<<<<<<
greater-than sign>>>>>>
Latin capital ligature OEŒŒŒŒŒŒ
Latin small ligature oeœœœœœœ
Latin capital letter S with caronŠŠŠŠŠŠ
Latin small letter s with caronšššššš
Latin capital letter Y with diaeresisŸŸŸŸŸŸ
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
per mille sign
single left-pointing angle quotation mark
single right-pointing angle quotation mark
euro sign??????

&指令

什麼是 "&" 指令

在撰寫HTML網頁時,經常會用到 "&" (Ampersand)指令,尤其在我撰寫 HTML新手入門HTML再接再厲 時,幾乎每一頁都用上許多次,以顯示:HTML指令中常用的 <>,或是鍵盤上沒有的特別符號。

什麼樣子的特別符號

舉例而言,你想要有個版權符號,例如 © 或是 ®,但是鍵盤上找不到,難道要自己畫一個嗎!? 或者是你在我介紹HTML的網頁中會看到 <HTML><P>等等指令敘述,可是若 HTML 或 P 包含於 < > 之中,這些指令應該是不會顯示在網頁上的啊!? 這是怎麼弄的呢!?

你知道嗎,你的瀏覽程式除了可以解讀包含於 < > 中的指令外,也可以解讀包含於 &; (分號)中的指令。你只要再記得3~5個英文字意簡寫,就可以在網頁中任意加入特殊符號了。

以下就是使用 &指令 來顯示的常用符號表,更多的符號請參閱 特殊字元表 一篇。(註:中文版或英文版IE5.0以上皆適用,但舊版瀏覽程式可能無法正確顯示)。

特殊符號

英文字意簡寫表示

<

&lt;

>

&gt;

&

&amp;

"

&quot;

(空格)

&nbsp;

Ç

&Ccedil;

ç

&ccdil;

©

&copy;

Ñ

&Ntilde;

ñ

&ntilde;

Þ

&THORN;

þ

&thorn;

Ý

&Yacute;

ý

&yacute;

ÿ

&yuml;

ß

&szlig;

Æ

&AElig;

Á

&Aacute;

Â

&Acirc;

À

&Agrave;

Å

&Aring;

Ã

&Atilde;

Ä

&Auml;

æ

&aelig;

á

&aacute;

â

&acirc;

à

&agrave;

å

&aring;

ã

&atilde;

ä

&auml;

Ð

&ETH;

É

&Eacute;

Ê

&Ecirc;

È

&Egrave;

Ë

&Euml;

ð

&eth;

é

&eacute;

ê

&ecirc;

è

&egrave;

ë

&euml;

Í

&Iacute;

Î

&Icirc;

Ì

&Igrave;

Ï

&Iuml;

í

&iacute;

î

&icirc;

ì

&igrave;

ï

&iuml;

Ó

&Oacute;

Ô

&Ocirc;

Ò

&Ograve;

Ø

&Oslash;

Õ

&Otilde;

Ö

&Ouml;

ó

&oacute;

ô

&ocirc;

ò

&ograve;

ø

&oslash;

õ

&otilde;

ö

&ouml;

Ú

&Uacute;

Û

&Ucirc;

Ù

&Ugrave;

Ü

&Uuml;

ú

&uacute;

û

&ucirc;

ù

&ugrave;

ü

&uuml;

®

&reg;

±

&plusmn;

µ

&micro;

&para;

·

&middot;

¢

&cent;

£

&pound;

¥

&yen;

¼

&frac14;

½

&frac12;

¾

&frac34;

¹

&sup1;

²

&sup2;

³

&sup3;

¿

&iquest;

°

&deg;

¦

&brvbar;

§

&sect;

«

&laquo;

»

&raquo;

( 不分類不分類 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=surpanp&aid=2452606