0% completed
HTML special characters are symbols and reserved characters that cannot be directly written in HTML because they have specific meanings (e.g., < is used to define tags). To display these characters on a webpage, you need to use their HTML entities. HTML entities start with an ampersand (&) and end with a semicolon (;).
Below is a table of commonly used HTML special characters, their meanings, and examples.
| Character | Description | Entity Code | Example |
|---|---|---|---|
< | Less than sign | < | 2 < 5 → 2 < 5 |
> | Greater than sign | > | 5 > 2 → 5 > 2 |
& | Ampersand | & | Tom & Jerry → Tom & Jerry |
" | Double quotation mark | " | "Hello" → "Hello" |
' | Single quotation mark | ' | 'Hello' → 'Hello' |
© | Copyright symbol | © | © 2025 → © 2025 |
® | Registered trademark symbol | ® | ® → ® |
£ | Pound currency symbol | £ | £100 → £100 |
¥ | Yen currency symbol | ¥ | ¥500 → ¥500 |
€ | Euro currency symbol | € | €50 → €50 |
¢ | Cent symbol | ¢ | 50¢ → 50¢ |
§ | Section symbol | § | § 3 → § 3 |
± | Plus-minus sign | ± | ±5 → ±5 |
× | Multiplication sign | × | 5 × 5 → 5 × 5 |
÷ | Division sign | ÷ | 10 ÷ 2 → 10 ÷ 2 |
(Space) | Non-breaking space | | Hello World → Hello World |
Reserved characters like < and > cannot be used directly in HTML because they are interpreted as tags. Use their HTML entities instead.
Explanation:
< is replaced with < to display it as a less-than symbol on the webpage.&)The ampersand (&) is a reserved character and must be represented using &.
Explanation:
& is represented as & to prevent it from being misinterpreted as the start of another HTML entity.HTML entities can be used to display currency symbols like Pound, Euro, and Yen characters seamlessly.
Explanation:
£, €, and ¥ are used to represent £, €, and ¥ respectively.Special characters like © and ® are commonly used for branding and legal text.
Explanation:
© displays the copyright symbol, and ® displays the registered trademark symbol.The entity is used to create extra spaces between words or to prevent line breaks.
Explanation:
adds non-breaking spaces between "Hello" and "World".Use Entities for Reserved Characters:
< for < and > for > to avoid conflicts with HTML tags.Use Descriptive Entities:
© for ©) to improve code readability.Check Compatibility:
Mastering HTML special characters allows you to display complex symbols and reserved
.....
.....
.....