HTML/HTML Advanced

HTML Entities & Symbols

Updated on January 6, 2026
1 min read

HTML Entities are used to display special characters that HTML normally treats as code.

Example:

If you write < directly, HTML thinks it is a tag.

Simple Rule

  • Entity starts with &
  • Ends with ;
SymbolEntity NameEntity Code
<less than&lt;
>greater than&gt;
&ampersand&amp;
"double quote&quot;
'single quote&apos;

Example

<p>HTML tag starts with &lt;html&gt;</p>

Output:

HTML tag starts with <html>

Space Entities

Space TypeEntity
Normal space&nbsp;
Two spaces&nbsp;&nbsp;

Currency Symbols

SymbolEntity
&#8377;
$&dollar;
&euro;

Math Symbols

SymbolEntity
©&copy;
®&reg;
&trade;

Emoji Example 😀

<p>I ❤️ HTML</p>

When to Use HTML Entities?

  1. To show code in browser
  2. To avoid HTML errors
  3. To show symbols safely

One Line Remember

HTML entities display special characters safely