HTML Entities Tutorial

HTML entities are special codes or characters used to show symbols or characters that might be hard to type with a regular keyboard.

These codes are important for displaying special characters, symbols, and reserved HTML characters on web pages.

Basic HTML Entities

  1. &lt; - < (less than)
  2. &gt; - > (greater than)
  3. &amp; - & (ampersand)
  4. &quot; - " (double quote)
  5. &apos; - ' (apostrophe or single quote)

Numeric Character References

  1. HTML entities can also be represented using numeric character references, such as &#60; for <.
  2. These references are often used for less common characters or when you don't remember the entity name.

Special Characters

HTML entities are used to display special characters, such as copyright symbol, registered trademark symbol, and more.

  1. &copy; - © (copyright)
  2. & - ® (registered trademark)
  3. & - ™ (trademark)
  4. & - € (Euro currency)

Mathematical Symbols

  1. &times; - × (multiplication sign)
  2. &divide; - ÷ (division sign)
  3. &sum; - ∑ (summation)
  4. &alpha; - α (alpha)

Arrows and Punctuation

  1. &rarr; - → (right arrow)
  2. &frac14; - ¼ (one-quarter)
  3. &ndash; - – (en dash)
  4. &mdash; - — (em dash)

Currency Symbols

  1. &dollar; - $ (dollar sign)
  2. &euro; - € (Euro)
  3. &yen; - ¥ (yen)
  4. &pound; - £ (pound sterling)

Accented Characters

  1. &aacute; - á (a with acute accent)
  2. &eacute; - é (e with acute accent)
  3. &ouml; - ö (o with diaeresis)
  4. &ntilde; - ñ (n with tilde)

Emojis and Symbols

  1. &#128578; - 😂 (face with tears of joy)
  2. &hearts; - ♥ (heart)
  3. &starf; - ★ (star)

Mathematical and Technical Symbols

  1. &deg; - ° (degree)
  2. &micro; - µ (micro sign)
  3. &infin; - ∞ (infinity)
  4. &Delta; - Δ (delta)

Mathematical Operators

  1. &forall; - ∀ (for all)
  2. &part; - ∂ (partial differential)
  3. &prod; - ∏ (product)
  4. &sum; - ∑ (summation)

For more information visit the below websites.

MDN web docs Free Formatter