HTML symbols, also known as HTML entities, are used to display characters that are not readily available on a standard keyboard or have special meanings in HTML. These symbols include mathematical symbols, arrows, currency symbols, and more. Below is a list of common HTML symbols and their corresponding codes:
1. Common HTML Symbols
Symbol | Description | HTML Entity | Numeric Code |
---|---|---|---|
© | Copyright | © | © |
® | Registered Trademark | ® | ® |
™ | Trademark | ™ | ™ |
& | Ampersand | & | & |
< | Less Than | < | < |
> | Greater Than | > | > |
" | Quotation Mark | " | " |
¢ | Cent | ¢ | ¢ |
£ | Pound | £ | £ |
¥ | Yen | ¥ | ¥ |
€ | Euro | € | € |
§ | Section | § | § |
¶ | Paragraph | ¶ | ¶ |
• | Bullet | • | • |
… | Ellipsis | … | … |
← | Left Arrow | ← | ← |
→ | Right Arrow | → | → |
↑ | Up Arrow | ↑ | ↑ |
↓ | Down Arrow | ↓ | ↓ |
♠ | Spade | ♠ | ♠ |
♣ | Club | ♣ | ♣ |
♥ | Heart | ♥ | ♥ |
♦ | Diamond | ♦ | ♦ |
2. Mathematical Symbols
Symbol | Description | HTML Entity | Numeric Code |
---|---|---|---|
+ | Plus | + | + |
− | Minus | − | − |
× | Multiplication | × | × |
÷ | Division | ÷ | ÷ |
= | Equals | = | = |
≠ | Not Equal | ≠ | ≠ |
≈ | Approximately | ≈ | ≈ |
√ | Square Root | √ | √ |
∞ | Infinity | ∞ | ∞ |
∠ | Angle | ∠ | ∠ |
∫ | Integral | ∫ | ∫ |
∑ | Summation | ∑ | ∑ |
∏ | Product | ∏ | ∏ |
3. Greek Letters
Symbol | Description | HTML Entity | Numeric Code |
---|---|---|---|
Α | Alpha | Α | Α |
Β | Beta | Β | Β |
Γ | Gamma | Γ | Γ |
Δ | Delta | Δ | Δ |
Ε | Epsilon | Ε | Ε |
Ζ | Zeta | Ζ | Ζ |
Η | Eta | Η | Η |
Θ | Theta | Θ | Θ |
Ι | Iota | Ι | Ι |
Κ | Kappa | Κ | Κ |
Λ | Lambda | Λ | Λ |
Μ | Mu | Μ | Μ |
Ν | Nu | Ν | Ν |
Ξ | Xi | Ξ | Ξ |
Ο | Omicron | Ο | Ο |
Π | Pi | Π | Π |
Ρ | Rho | Ρ | Ρ |
Σ | Sigma | Σ | Σ |
Τ | Tau | Τ | Τ |
Υ | Upsilon | Υ | Υ |
Φ | Phi | Φ | Φ |
Χ | Chi | Χ | Χ |
Ψ | Psi | Ψ | Ψ |
Ω | Omega | Ω | Ω |
4. How to Use HTML Symbols
To use these symbols in your HTML document, you can either use the entity name or the numeric code. For example:
<p>Copyright symbol: ©</p>
<p>Euro symbol: €</p>
HTMLBoth of these will display the respective symbols in the browser.
Conclusion
HTML symbols, or entities, are essential for displaying special characters, symbols, and icons that are not directly available on a standard keyboard or have reserved meanings in HTML. By using either named entities (e.g., ©
for ©) or numeric codes (e.g., ©
), developers can ensure that these symbols render correctly across different browsers and devices. These symbols are widely used for representing currency (e.g., €, £), mathematical operators, arrows, and other special characters, enhancing the readability and functionality of web content. Understanding and utilizing HTML symbols is a fundamental skill for web developers, enabling them to create more dynamic and visually appealing web pages.