TExcelTAD
Home › HTML › HTML Symbols

HTML Symbols

Many useful characters are missing from a normal keyboard: the euro sign, arrows, mathematical operators, Greek letters, card suits and more. HTML lets you put any of them on a page using entity names or numeric character references, so you never need to hunt for a special key.

Three ways to write a symbol

Every character in Unicode has a number called its code point. HTML gives you three ways to refer to it:

Form Example for € When to use it
Entity name € Easy to remember, but not every character has one
Decimal reference € Works for every character
Hexadecimal reference € Matches how Unicode charts list code points (U+20AC)

All three produce exactly the same character in the browser. If your file is saved as UTF-8 (it should be — see the Charset lesson), you can also simply paste the character itself.

html · try it yourself
<p>Entity name: &euro; 25</p>
<p>Decimal: &#8364; 25</p>
<p>Hexadecimal: &#x20AC; 25</p>
<p>Typed directly: € 25</p>

Tip: Entity names are case-sensitive. &Delta; gives a capital Δ, while &delta; gives a small δ.

Currency symbols

Symbol Name Entity Decimal
€ Euro &euro; &#8364;
£ Pound &pound; &#163;
¥ Yen &yen; &#165;
¢ Cent &cent; &#162;
₫ Dong — &#8363;
₹ Rupee — &#8377;

Notice that the dong and rupee signs have no entity name. That is common: only a few hundred characters have names, so the numeric form is the reliable fallback.

Math symbols

HTML can display most mathematical operators. This is handy for simple formulas without using a math library.

Symbol Meaning Entity
× multiply &times;
÷ divide &divide;
± plus or minus &plusmn;
≠ not equal &ne;
≤ / ≥ less / greater or equal &le; / &ge;
√ square root &radic;
∞ infinity &infin;
∑ sum &sum;
π pi &pi;
html · try it yourself
<h3>Little formulas</h3>
<p>Area of a circle: A = &pi; &times; r&sup2;</p>
<p>Quadratic roots: x = (&minus;b &plusmn; &radic;(b&sup2; &minus; 4ac)) &divide; 2a</p>
<p>For all x: x &ge; 0 &rArr; &radic;x is real</p>
<p>&sum; of 1..n = n(n + 1) / 2, and n can grow to &infin;</p>

Arrows, Greek letters and other symbols

Symbol Entity Symbol Entity
← &larr; α &alpha;
→ &rarr; β &beta;
↑ &uarr; Ω &Omega;
↓ &darr; © &copy;
⇒ &rArr; ® &reg;
↔ &harr; ™ &trade;
♠ ♣ ♥ ♦ &spades; &clubs; &hearts; &diams; ° &deg;
html · try it yourself
<style>
  nav a { margin: 0 8px; text-decoration: none; }
  .cards span { font-size: 32px; margin-right: 6px; }
  .red { color: crimson; }
</style>
<nav>
  <a href="#">&larr; Previous</a>
  <a href="#">&uarr; Top</a>
  <a href="#">Next &rarr;</a>
</nav>
<p class="cards">
  <span>&spades;</span><span class="red">&hearts;</span>
  <span class="red">&diams;</span><span>&clubs;</span>
</p>
<p>Today it is 21&deg;C. Physics uses &alpha;, &beta; and &Omega; a lot.</p>
<footer>&copy; 2026 ExcelTAD&trade;</footer>

Finding a code point

If a character has no entity name, look up its Unicode code point (for example "U+2713 CHECK MARK") and write it in hexadecimal: &#x2713; gives ✓. You can also find the decimal number with a tiny bit of JavaScript, as the next playground shows.

html · try it yourself
<p>Type a character to see its references:</p>
<input id="ch" value="✓" maxlength="2" size="4">
<p id="out"></p>
<script>
  const box = document.getElementById('ch');
  const out = document.getElementById('out');
  function show() {
    const cp = box.value.codePointAt(0);
    if (cp === undefined) { out.textContent = ''; return; }
    out.textContent = `Decimal: &#${cp};   Hex: &#x${cp.toString(16).toUpperCase()};`;
  }
  box.addEventListener('input', show);
  show();
</script>

Note: Symbol fonts vary. A character may look slightly different on Windows, macOS and phones, and a very rare symbol might show as an empty box if no installed font contains it.

Test yourself

Which reference displays the euro sign €?

  1. &eur;
  2. &#x20AC;
  3. &#20AC;
  4. &euro

What should you use for a character that has no entity name?

  1. It cannot be shown in HTML
  2. An image
  3. A numeric reference such as &#8377;
  4. The <symbol> tag

Are &Delta; and &delta; the same character?

  1. Yes, entities ignore case
  2. No, entity names are case-sensitive
  3. Only in Chrome
  4. Neither is valid