天天看點

HTML實體

HTML Symbol Entities(HTML 符号實體)

Example(範例)

<p>I will display &copy;</p>
<p>I will display &#169;</p>
           

結果:

I will display ©

I will display ©

常用實體:

Result Description Entity Name Entity Number
non-breaking space(空格) &#160;
< less than &lt; &#60;
> greater than &gt; &#62;
& ampersand &amp; &#38;
" double quotation mark &quot; &#34;
' single quotation mark (apostrophe) &apos; &#39; (IE不支援)
¢ cent &cent; &#162;
£ pound &pound; &#163;
¥ yen &yen; &#165;
euro &euro; &#8364;
© copyright &copy; &#169;
® registered trademark &reg; &#174;
商标 &trade;
× 乘号 &times;
÷ 除号 &divide;
§ 小節 &sect;