HTML Entities and Special Characters
Some characters have special meaning in HTML — like < and > which mark tags. To display them as visible text you use HTML entities. They start with & and end with ;.
The Problem — Reserved Characters
<!-- WRONG: browser thinks <b> is a new tag --> <p>The tag for bold is <b> in HTML</p> <!-- CORRECT: use < and > --> <p>The tag for bold is <b> in HTML</p>
The tag for bold is <b> in HTML
Common Entities
<p>Copyright: © 2025 CIWeb</p> <p>Trademark: CIWeb™</p> <p>Price: ₹11</p> <p>Arrow: Home → Courses</p> <p>Dash: HTML — the skeleton</p> <p>Non-breaking: Rs. 11</p>
Copyright: © 2025 CIWeb
Trademark: CIWeb™
Price: ₹11
Arrow: Home → Courses
Dash: HTML — the skeleton
Non-breaking: Rs. 11
Always use & < > when displaying them as visible text. Leaving them unescaped can break your HTML or introduce XSS security vulnerabilities.
Entities have named forms like © and numeric forms like ©. Named are more readable. Numeric work for any Unicode character even without a name — like the Indian Rupee sign.
HTML uses < and > for tags so you cannot type them directly as visible text — the browser would think a new tag is starting. Entities are the escape system that separates HTML syntax from displayed content.