<htmlstart/>

HTML Entities

HTML entities display reserved characters and special symbols that cannot be typed directly.

Why Use Entities?

Some characters have special meaning in HTML (<, >, &) and must be escaped. Others are hard to type on a keyboard.

Common HTML Entities

CharacterEntity nameEntity number
<&lt;&#60;
>&gt;&#62;
&&amp;&#38;
"&quot;&#34;
'&apos;&#39;
(non-breaking space)&nbsp;&#160;
©&copy;&#169;
®&reg;&#174;
&trade;&#8482;
&euro;&#8364;
£&pound;&#163;
&mdash;&#8212;
<!-- Show code in text without it being parsed as HTML -->
<p>Use &lt;h1&gt; for the main heading.</p>
<!-- Renders as: Use <h1> for the main heading. -->

<!-- Non-breaking space keeps words together -->
<p>Price: $9&nbsp;99</p>

<!-- Copyright notice -->
<footer>&copy; 2025 My Company</footer>
Always escape & as &amp; and < as &lt; when displaying code or user-generated content in HTML — this prevents XSS vulnerabilities.