HTML entities are used to display reserved characters in HTML and to represent characters that cannot be typed on a keyboard. They are helpful for ensuring that your content is correctly interpreted by web browsers.
Symbol | Entity Name | Entity Number | Description | Example |
---|---|---|---|---|
& | & | & | Ampersand |
Try yourself
|
< | < | < | Less Than |
Try yourself
|
> | > | > | Greater Than |
Try yourself
|
" | " | " | Double Quote |
Try yourself
|
' | ' | ' | Single Quote |
Try yourself
|
© | © | © | Copyright |
Try yourself
|
® | ® | ® | Registered Trademark |
Try yourself
|
|   | Non-Breaking Space |
Try yourself
|
|
€ | € | € | Euro |
Try yourself
|
£ | £ | £ | Pound |
Try yourself
|
¥ | ¥ | ¥ | Yen |
Try yourself
|
¢ | ¢ | ¢ | Cent |
Try yourself
|
§ | § | § | Section |
Try yourself
|
™ | ™ | ™ | Trademark |
Try yourself
|
← | ← | ← | Left Arrow |
Try yourself
|
→ | → | → | Right Arrow |
Try yourself
|
↑ | ↑ | ↑ | Up Arrow |
Try yourself
|
↓ | ↓ | ↓ | Down Arrow |
Try yourself
|
&
to display an ampersand.
).To use an HTML entity, simply include it in your HTML code where you want the character to appear. Here are a few examples:
Example: Ampersand
&
In this example, the ampersand character (&
) is displayed using the &
entity.
<>
This example shows how to display the less than (<
) and greater than (>
) characters using their respective entities.
"'
In this example, both single ('
) and double ("
) quotation marks are displayed using their respective entities.
HTML entities are also used to represent a wide range of special symbols and characters. Here are a few examples:
Character | Entity Name | Entity Number | Description | Example |
---|---|---|---|---|
∞ | ∞ | ∞ | Infinity |
Try yourself
|
π | π | π | Pi |
Try yourself
|
∑ | ∑ | ∑ | Summation |
Try yourself
|
√ | √ | √ | Square Root |
Try yourself
|
∫ | ∫ | ∫ | Integral |
Try yourself
|
∆ | Δ | Δ | Delta |
Try yourself
|
± | ± | ± | Plus-Minus |
Try yourself
|
÷ | ÷ | ÷ | Division |
Try yourself
|
≈ | ≈ | ≈ | Approximately Equal |
Try yourself
|