MakeW3web

Unicode Entities

Unicode entities, also known as numeric character references, are used to represent special characters in HTML based on their Unicode code points. These entities allow you to display characters that may not be available on your keyboard or are not part of the standard ASCII character set, such as symbols, diacritics, or characters from non-Latin scripts.

Unicode entities can be written in decimal or hexadecimal format. Both formats start with an ampersand (`&`) and a hash (`#`) symbol, followed by either the decimal or hexadecimal code point, and end with a semicolon (`;`).

Decimal format: `&#CODE;`
Hexadecimal format: `&#xHEXCODE;`

Here are some examples of Unicode entities:

  1. Copyright symbol (©): Decimal: `©`, Hexadecimal: `©`
  2. Registered trademark symbol (®): Decimal: `®`, Hexadecimal: `®`
  3. Euro currency symbol (€): Decimal: `€`, Hexadecimal: `€`
  4. Greek capital letter Omega (Ω): Decimal: `Ω`, Hexadecimal: `Ω`
  5. Em dash (—): Decimal: `—`, Hexadecimal: `—`

To use Unicode entities in your HTML code, include them where you want the special character to appear:

<p>The price of the product is &#8364;10.</p>
<p>The Greek letter Omega: &#937;</p>

Using Unicode entities allows you to display a wide variety of characters from different scripts and symbol sets, ensuring that your web pages display correctly across different browsers and platforms.

Was this page helpful?