36. HTML Entities and Symbols (Entities, Symbols & Emojis)
Special symbols: copyright ©, rupee ₹ and safe brackets
Real-life analogy
Since < and > are reserved in HTML for creating tags, secret codes (Entities) are used to print real brackets on screen.
Explanation
Major HTML Entities:
< : < (Less than)> : > (Greater than)& : & (Ampersand)© : © (Copyright)₹ : ₹ (rupee sign) : non-breaking spaceGolden rules
- An entity code always starts with
&and ends with;.
Common mistake
Forgetting to put the semicolon (;) at the end.
Example code
<!DOCTYPE html>
<html>
<body style="font-family: sans-serif; padding: 20px; font-size: 13px;">
<p>Copyright symbol: <strong>© 2026</strong></p>
<p>Indian currency: <strong>₹ 5,000</strong></p>
<p>Showing code on screen: <strong><div class="box"></strong></p>
</body>
</html>
Quick quiz
Which entity is used in HTML to give a non-breaking space between two words?
- &space;
-
- ␣
- ⪆
Show answer
Answer:
&nbsp; stands for Non-Breaking Space.