HTML Entities
HTML entities let you display characters that would otherwise break HTML parsing or that are not available on your keyboard. They start with & and end with ;.
Why Entities Exist
<!-- PROBLEM: This breaks HTML --> <p>5 < 10 and 10 > 5</p> <!-- Browser sees <10 as a tag! --> <!-- SOLUTION: Use entities --> <p>5 < 10 and 10 > 5</p> <!-- Renders as: 5 < 10 and 10 > 5 --> <!-- Copyright and brand symbols --> <p>© 2026 CIWeb — All rights reserved.</p> <p>Price: &rupees; 99 — Buy Now!</p>
5 < 10 and 10 > 5
© 2026 CIWeb — All rights reserved.
Price: ₹ 99 — Buy Now!
Essential Entities Reference
<p>< < (less-than, safe for HTML)</p> <p>> > (greater-than)</p> <p>& & (ampersand, use in HTML!)</p> <p>" " (double quote)</p> <p>' ' (apostrophe)</p> <p> non-breaking space</p> <p>© © copyright symbol</p> <p>® ® registered trademark</p> <p>™ ™ trademark</p> <p>— — em dash</p> <p>– – en dash</p> <p>₹ ₹ Indian Rupee sign</p> <p>🚀🚀 Rocket emoji</p>
With <meta charset="UTF-8"> you can type or paste any character directly — Hindi text, emojis, ©, ₹, → — without entities. Entities are mainly needed for <, >, and & which have special meaning in HTML. Everything else can be typed directly in UTF-8 files.
The & character starts every entity. If you write an & in HTML without a valid entity following it, browsers try to parse it as the start of an entity and may display garbled text. Always write & when you mean a literal ampersand — for example in URLs, song titles like "Faith & Courage", or company names like "H&M".