HTML Symbols
What are HTML Symbols?
HTML symbols are special characters that cannot be typed directly on a keyboard, such as mathematical symbols, Greek letters, arrows, and other special characters. These symbols are represented using HTML entities (entity names or entity numbers) and are useful for mathematical expressions, scientific notation, and special characters.
Mathematical Symbols
Common mathematical symbols:
| Symbol | Entity Name | Entity Number | Description |
|---|---|---|---|
| ∑ | ∑ |
∑ |
Sum |
| ∏ | ∏ |
∏ |
Product |
| √ | √ |
√ |
Square root |
| ∞ | ∞ |
∞ |
Infinity |
| ≠ | ≠ |
≠ |
Not equal |
| ≤ | ≤ |
≤ |
Less than or equal |
| ≥ | ≥ |
≥ |
Greater than or equal |
| ± | ± |
± |
Plus-minus |
| × | × |
× |
Multiplication |
| ÷ | ÷ |
÷ |
Division |
Greek Letters
Common Greek letters used in mathematics and science:
Example
<p>Alpha: α (α)</p>
<p>Beta: β (β)</p>
<p>Gamma: γ (γ)</p>
<p>Delta: δ (δ)</p>
<p>Pi: π (π)</p>
<p>Omega: Ω (Ω)</p>
Arrows
Common arrow symbols:
Example
<p>Left arrow: ← (←)</p>
<p>Right arrow: → (→)</p>
<p>Up arrow: ↑ (↑)</p>
<p>Down arrow: ↓ (↓)</p>
<p>Double arrow: ⇔ (⇔)</p>
Other Symbols
Other common symbols:
Example
<p>Degree: ° (°) - 25°C</p>
<p>Section: § (§)</p>
<p>Paragraph: ¶ (¶)</p>
<p>Bullet: • (•)</p>
<p>Ellipsis: … (…)</p>
Complete Example
Example
<h2>Mathematical Expressions</h2>
<p>The area of a circle: <var>A</var> = π<var>r</var><sup>2</sup></p>
<p>Euler's formula: e<sup><var>iπ</var></sup> = -1</p>
<p>Inequality: <var>x</var> ≤ 10 ∧ <var>x</var> ≥ 0</p>
<p>Temperature: 25°C → 77°F</p>
Best Practices
- Use entity names when available: Easier to read and remember
- Use entity numbers as fallback: Works in all browsers
- Test display: Ensure symbols display correctly across browsers
- Consider accessibility: Some symbols may need alternative text
- Use UTF-8 encoding: UTF-8 supports many symbols directly