HTML Entities

HTML entities are special principle used to display reserved characters or symbols in HTML. They start with & and end with ;. For example, if you want to display < or > in your web web page, you can not just class them directly because they're used in HTML tags. rather, you use HTML entities.

Why Use entities?

  • To display reserved characters like <, >, &, ", ', etc.
  • To display characters not set up on the keyboard (©, ®, €, etc.).
  • To write safe and valid HTML.

Common HTML Entities Table

Character     Reality Name Entity Code
< less than &lt;
> greater than &gt;
& ampersand &amp;
" quotation mark &quot;
' apostrophe &apos;
© copyright &copy;
® registered trademark    &reg;
euro &euro;
non-breaking space &nbsp;
Indian Rupee Symbol &#8377;

Emojies Entities

Emoji HTML Entity
😀 &#128512;
😁 &#128513;
😂 &#128514;
😃 &#128515;
😄 &#128516;
😅 &#128517;
😆 &#128518;
😇 &#128519;
😈 &#128520;
😉 &#128521;
😊 &#128522;
😋 &#128523;
😌 &#128524;
😍 &#128525;
😎 &#128526;
😏 &#128527;
😐 &#128528;
😑 &#128529;
😒 &#128530;
😓 &#128532;

Example Operation


        <h1>Use <h1> for headlines.</h1>
        <p>Brand © 2025 by MK_Coder</p>
                         

Preview :

HTML Entities Output

(This image here showing the text "Use <h1> for headlines." as an h1 heading, and below it the text "Brand © 2025 by MK_Coder" as a paragraph.)

“ Entities allow HTML to speak the language of symbols. ”