HTML Entities
HTML entities are used to display special characters that HTML would normally treat as code. For example, < or &.
1. Reserved Characters
Some characters like < and > are used in HTML code. To show them on the page, we use entities:
<p>This is a paragraph</p>
2. Common HTML Entities
| Character | Entity Name | Entity Number |
|---|---|---|
| < | < | < |
| > | > | > |
| & | & | & |
| " | " | " |
| © | © | © |
| ® | ® | ® |
| ™ | ™ | ™ |
3. Example in Paragraph
Use <h1> for headings & © 2025 ASWCode.
4. Why Use HTML Entities?
- Display reserved HTML characters like
<,>, and& - Show special symbols like ©, ®, ™
- Prevent breaking HTML code accidentally
Next Lesson → HTML Symbols
Previous Lesson → HTML Semantic Elements