移至主內容

文字樣式變化和特殊符號表

文字樣式變化和特殊符號表

Written by Wanding on 10 August 2020
文字有粗體、斜體、大小、顏色的不同,運用字體的變化,可以幫我們強化文字的語氣,或凸顯主題的某些特色。 目前網頁建構的趨勢大都已經使用CSS來控制文字的變化,但是認識HTML基本調整樣式的標籤仍是重要的基礎,因為還是在許多地方會常用到。

以下為我們常用在改變文字樣式的標籤:

  • <b> :粗體字
  • <i> :斜體字
  • <u> :文字加底線
  • <sup> :上標字
  • <sub> :下標字
  • <adress > :用來顯示電子信箱的地址
  • <cite> :用於引經據典的文字
  • <code> :用於一段程式碼
  • <dfn> :用來顯示定義的文字
  • <em> :強調
  • <kbd > :用來表示使用者輸入的文字
  • <samp > :用於引用字
  • <strong> :用於加強語氣
  • <var> :用於顯示變數

HTML特殊符號表

符號 意義 名稱表示法 十進位表示法
向右箭頭 &rarr; &#8594;
向左箭頭 &larr; &#8592;
向上箭頭 &uarr; &#8593;
向下箭頭 &darr; &#8595;
" 雙引號 &quot; &#34;
& &記號 &amp; &#38;
< 小於 &lt; &#60;
> 大於 &gt; &#62;
小於或等於 &le; &#8804;
大於或等於 &ge; &#8805;
相似 &sim; &#8764;
趨近等於 &cong; &#8773;
幾乎等於 &asymp; &#8776;
不等於 &ne; &#8800;
等值、等量 &equiv; &#8801;
ˆ 進格修飾抑揚符 &circ; &#710;
˜ 小波浪符號 &tilde; &#732;
半格空格 &ensp; &#8194;
全格空格 &emsp; &#8195
半格破折號 &ndash; &#8211;
左單引號 &lsquo; &#8216;
右單引號 &rsquo; &#8217;
單下引號 &sbquo; &#8212;
左雙引號 &ldquo; &#8220;
右雙引號 &rdquo; &#8221;
雙下引號 &bdquo; &#8222;
千分之符號 &permil; &#8240;
指左單尖引號 &lsaquo; &#8249;
指右單尖引號 &rsaquo; &#8250;
歐元符號 &euro; &#8364;
© 版權符號 &copy; &#169;
® 註冊商標 &reg; &#174;
° &deg; &#176;
for all &forall; &#8704;
part &part; &#8706;
exists &exists; &#8707;
empty &empty; &#8709;
nabla &nabla; &#8711;
isin &isin; &#8712;
notin &notin; &#8713;
ni &ni; &#8715;
prod &prod; &#8719;
sum &sum; &#8721;
minus &minus; &#8722;
lowast &lowast; &#8727;
square root &radic; &#8730;
proportional to &prop; &#8733;
infinity &infin; &#8734;
angle &ang; &#8736;
and &and; &#8743;
or &or; &#8744;
cap &cap; &#8745;
cup &cup; &#8746;
integral &int; &#8747;
therefore &there4; &#8756;
subset of &sub; &#8834;
superset of &sup; &#8835;
not subset of &nsub; &#8836;
subset or equal &sube; &#8838;
superset or equal &supe; &#8839;
circled plus &oplus; &#8853;
cirled times &otimes; &#8855;
perpendicular &perp; &#8869;
dot operator &sdot; &#8901;

回目錄頁