HTML特殊字元代碼
搜尋並複製HTML特殊字元、符號和實體代碼。
| 符號 | 命名實體 | 十進位 | 十六進位 | 說明 |
|---|---|---|---|---|
| < | < | < | < | Less-than sign |
| > | > | > | > | Greater-than sign |
| & | & | & | & | Ampersand |
| " | " | " | " | Quotation mark |
| ' | ' | ' | ' | Apostrophe |
|   |   | Non-breaking space | |
| © | © | © | © | Copyright sign |
| ® | ® | ® | ® | Registered sign |
| ™ | ™ | ™ | ™ | Trade mark sign |
| € | € | € | € | Euro sign |
| £ | £ | £ | £ | Pound sign |
| ¥ | ¥ | ¥ | ¥ | Yen sign |
| ¢ | ¢ | ¢ | ¢ | Cent sign |
| ¤ | ¤ | ¤ | ¤ | Currency sign |
| ± | ± | ± | ± | Plus-minus sign |
| × | × | × | × | Multiplication sign |
| ÷ | ÷ | ÷ | ÷ | Division sign |
| ≈ | ≈ | ≈ | ≈ | Almost equal to |
| ≠ | ≠ | ≠ | ≠ | Not equal to |
| ≤ | ≤ | ≤ | ≤ | Less-than or equal to |
| ≥ | ≥ | ≥ | ≥ | Greater-than or equal to |
| ∞ | ∞ | ∞ | ∞ | Infinity |
| √ | √ | √ | √ | Square root |
| ∑ | ∑ | ∑ | ∑ | N-ary summation |
| ∏ | ∏ | ∏ | ∏ | N-ary product |
| ° | ° | ° | ° | Degree sign |
| µ | µ | µ | µ | Micro sign |
| ¼ | ¼ | ¼ | ¼ | One quarter |
| ½ | ½ | ½ | ½ | One half |
| ¾ | ¾ | ¾ | ¾ | Three quarters |
| – | – | – | – | En dash |
| — | — | — | — | Em dash |
| … | … | … | … | Horizontal ellipsis |
| " | “ | “ | “ | Left double quotation |
| " | ” | ” | ” | Right double quotation |
| ‘ | ‘ | ‘ | ‘ | Left single quotation |
| ’ | ’ | ’ | ’ | Right single quotation |
| « | « | « | « | Left angle quotation |
| » | » | » | » | Right angle quotation |
| ¿ | ¿ | ¿ | ¿ | Inverted question mark |
| ¡ | ¡ | ¡ | ¡ | Inverted exclamation |
| ← | ← | ← | ← | Left arrow |
| → | → | → | → | Right arrow |
| ↑ | ↑ | ↑ | ↑ | Up arrow |
| ↓ | ↓ | ↓ | ↓ | Down arrow |
| ↔ | ↔ | ↔ | ↔ | Left-right arrow |
| ⇐ | ⇐ | ⇐ | ⇐ | Double left arrow |
| ⇒ | ⇒ | ⇒ | ⇒ | Double right arrow |
| ⇔ | ⇔ | ⇔ | ⇔ | Double left-right arrow |
| • | • | • | • | Bullet |
| · | · | · | · | Middle dot |
| ♠ | ♠ | ♠ | ♠ | Spade suit |
| ♣ | ♣ | ♣ | ♣ | Club suit |
| ♥ | ♥ | ♥ | ♥ | Heart suit |
| ♦ | ♦ | ♦ | ♦ | Diamond suit |
| ★ | — | ★ | ★ | Black star |
| ☆ | — | ☆ | ☆ | White star |
| ☐ | — | ☐ | ☐ | Ballot box |
| ☑ | — | ☑ | ☑ | Ballot box with check |
| ☞ | — | ☞ | ☞ | Pointing hand right |
關於本工具
HTML特殊字元代碼工具幫助您快速找到HTML中使用的特殊符號和實體代碼。包含數百個字元,如與號(&)、尖括號(<>)、版權符號(©)等。
每個字元提供命名實體(如&)、十進位(如&)和十六進位(如&)格式。建議使用命名實體以提高可讀性。
使用方法
- 在搜尋框中輸入符號名稱、字元或代碼。
- 瀏覽過濾後的清單找到所需內容。
- 點擊任意行複製命名實體代碼。
- 將代碼貼入HTML檔案中。
- 在瀏覽器中驗證是否正確渲染。
使用情境
適用於撰寫HTML文件、郵件範本、顯示數學符號、新增版權或商標符號以及輸入特殊標點符號。
常見問題
- 應該使用命名實體還是數字代碼? — 命名實體(&, < 等)可讀性更好且被廣泛支援。數字代碼適用於沒有命名實體的符號。
- HTML5中支援所有實體嗎? — 大多數命名實體在HTML5中有效,但部分是HTML5新增的。不確定時使用數字代碼。
- 可以在JavaScript中使用實體代碼嗎? — HTML實體僅在HTML上下文中有效。在JavaScript中,直接使用Unicode字元或透過textContent設定。