Loading...

HTML Entities

HTML entities are used to display special characters that can't be directly typed in HTML, such as <, >, or &.

What Are Entities?

Entities are the encoded forms of special characters. They usually start with an & and end with a semicolon, like & or <.

Common HTML Entities

Here are some commonly used entities that every developer should know:

  • &amp;&
  • &lt;<
  • &gt;>
  • &quot;"
  • &apos;'
  • &nbsp;(non‑breaking space)
  • &copy;©
  • &reg;®
  • &trade;
  • &sect;§
  • &bull;
  • &hellip;
  • &mdash;
  • &ndash;
  • &middot;·
  • &laquo;«
  • &raquo;»
  • &permil;
  • &micro;µ
  • &alpha;α
  • &beta;β
  • &gamma;γ
  • &pi;π
  • &omega;ω
  • &hearts;
  • &spades;
  • &clubs;
  • &diams;
  • &trade;
  • &rarr;
  • &larr;
  • &uarr;
  • &darr;

Usage Examples

The examples below demonstrate how entities appear in text and why they’re necessary for certain characters.

html

<p>This &amp; that</p>
<p>10 &lt; 20 &amp;&amp; 20 &gt; 10</p>
<p>&copy; 2025 All rights reserved.</p>

Numeric Entities

Some characters have no names but can be inserted using numeric codes. These usually start with &# and end with ;.

html

<p>This is the euro sign: &#8364;</p>
<p>This is the copyright sign: &#169;</p>

When to Use Entities?

Use HTML entities when a character conflicts with HTML syntax (e.g., <, >, &), or when displaying special symbols like currency or quotes.

Track Your Progress 🚀

Learn more easily by tracking your progress completely for free.


Top tools

CodeHubBoardly NEWLinksy NEWChromo NEW

Select Language

Set theme

© 2025 ReadyTools. All rights reserved.