TL
Tool Lab
💰捐贈
💰捐贈

HTML特殊字元代碼

搜尋並複製HTML特殊字元、符號和實體代碼。

符號命名實體十進位十六進位說明
<&lt;&#60;&#x3C;Less-than sign
>&gt;&#62;&#x3E;Greater-than sign
&&amp;&#38;&#x26;Ampersand
"&quot;&#34;&#x22;Quotation mark
'&apos;&#39;&#x27;Apostrophe
&nbsp;&#160;&#xA0;Non-breaking space
©&copy;&#169;&#xA9;Copyright sign
®&reg;&#174;&#xAE;Registered sign
&trade;&#8482;&#x2122;Trade mark sign
&euro;&#8364;&#x20AC;Euro sign
£&pound;&#163;&#xA3;Pound sign
¥&yen;&#165;&#xA5;Yen sign
¢&cent;&#162;&#xA2;Cent sign
¤&curren;&#164;&#xA4;Currency sign
±&plusmn;&#177;&#xB1;Plus-minus sign
×&times;&#215;&#xD7;Multiplication sign
÷&divide;&#247;&#xF7;Division sign
&asymp;&#8776;&#x2248;Almost equal to
&ne;&#8800;&#x2260;Not equal to
&le;&#8804;&#x2264;Less-than or equal to
&ge;&#8805;&#x2265;Greater-than or equal to
&infin;&#8734;&#x221E;Infinity
&radic;&#8730;&#x221A;Square root
&sum;&#8721;&#x2211;N-ary summation
&prod;&#8719;&#x220F;N-ary product
°&deg;&#176;&#xB0;Degree sign
µ&micro;&#181;&#xB5;Micro sign
¼&frac14;&#188;&#xBC;One quarter
½&frac12;&#189;&#xBD;One half
¾&frac34;&#190;&#xBE;Three quarters
&ndash;&#8211;&#x2013;En dash
&mdash;&#8212;&#x2014;Em dash
&hellip;&#8230;&#x2026;Horizontal ellipsis
"&ldquo;&#8220;&#x201C;Left double quotation
"&rdquo;&#8221;&#x201D;Right double quotation
&lsquo;&#8216;&#x2018;Left single quotation
&rsquo;&#8217;&#x2019;Right single quotation
«&laquo;&#171;&#xAB;Left angle quotation
»&raquo;&#187;&#xBB;Right angle quotation
¿&iquest;&#191;&#xBF;Inverted question mark
¡&iexcl;&#161;&#xA1;Inverted exclamation
&larr;&#8592;&#x2190;Left arrow
&rarr;&#8594;&#x2192;Right arrow
&uarr;&#8593;&#x2191;Up arrow
&darr;&#8595;&#x2193;Down arrow
&harr;&#8596;&#x2194;Left-right arrow
&lArr;&#8656;&#x21D0;Double left arrow
&rArr;&#8658;&#x21D2;Double right arrow
&hArr;&#8660;&#x21D4;Double left-right arrow
&bull;&#8226;&#x2022;Bullet
·&middot;&#183;&#xB7;Middle dot
&spades;&#9824;&#x2660;Spade suit
&clubs;&#9827;&#x2663;Club suit
&hearts;&#9829;&#x2665;Heart suit
&diams;&#9830;&#x2666;Diamond suit
&#9733;&#x2605;Black star
&#9734;&#x2606;White star
&#9744;&#x2610;Ballot box
&#9745;&#x2611;Ballot box with check
&#9758;&#x261E;Pointing hand right

關於本工具

HTML特殊字元代碼工具幫助您快速找到HTML中使用的特殊符號和實體代碼。包含數百個字元,如與號(&)、尖括號(<>)、版權符號(©)等。

每個字元提供命名實體(如&amp;)、十進位(如&#38;)和十六進位(如&#x26;)格式。建議使用命名實體以提高可讀性。

使用方法

  1. 在搜尋框中輸入符號名稱、字元或代碼。
  2. 瀏覽過濾後的清單找到所需內容。
  3. 點擊任意行複製命名實體代碼。
  4. 將代碼貼入HTML檔案中。
  5. 在瀏覽器中驗證是否正確渲染。

使用情境

適用於撰寫HTML文件、郵件範本、顯示數學符號、新增版權或商標符號以及輸入特殊標點符號。

常見問題

  • 應該使用命名實體還是數字代碼?命名實體(&amp;, &lt; 等)可讀性更好且被廣泛支援。數字代碼適用於沒有命名實體的符號。
  • HTML5中支援所有實體嗎?大多數命名實體在HTML5中有效,但部分是HTML5新增的。不確定時使用數字代碼。
  • 可以在JavaScript中使用實體代碼嗎?HTML實體僅在HTML上下文中有效。在JavaScript中,直接使用Unicode字元或透過textContent設定。