What are HTML entities?
Some characters are reserved in HTML. For example, if you use < or > symbols in your text, the browser may assume them as the markup. To solve this issue, you can use HTML entities.
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML entities</title>
</head>
<body>
<h4>This will be shown as a heading</h4>
<h4>This will be shown as the markup</h4>
</body>
</html>Output
This will be shown as a heading
<h4>This will be shown as the markup</h4>
Frequently used HTML entities
| Symbol | Entity | Description |
| < | < | Less than |
| > | > | Greater than |
| & | & | Ampersand |
| | Non-breaking space | |
| ' | ' | Apostrophe |
| " | " | Quotation mark |
| ~ | ˜ | Tilde |
| © | © | Copyright |
| ® | ® | Registered trademark |
| ™ | ™ | Trademark |
| € | € | Euro |
| £ | £ | Pound |
| ¢ | ¢ | Cent |
| ¥ | ¥ | Yen |
Subscribe
Join the newsletter to get the latest updates.