Web Design & Development
[ Web Design & Development Topics ]
Some characters have a special meaning in HTML, like the less than sign (<) that defines the start of an HTML tag. If we want the browser to actually display these characters we must insert character entities in the HTML source.
Entities are special characters that have a distinct meaning to HTML,so that when you want to actually use the character on your page you need to write some special code:
| Result | Description | Entity Name | Entity Number |
|---|---|---|---|
| non-breaking space | |   | |
| < | less than | < | < |
| > | greater than | > | > |
| & | ampersand | & | & |
| " | quotation mark | " | " |
| ' | apostrophe | ' (does not work in IE) | ' |
| Result | Description | Entity Name | Entity Number |
|---|---|---|---|
| ¢ | cent | ¢ | ¢ |
| £ | pound | £ | £ |
| ¥ | yen | ¥ | ¥ |
| § | section | § | § |
| © | copyright | © | © |
| ® | registered trademark | ® | ® |
| × | multiplication | × | × |
| ÷ | division | ÷ | ÷ |
See http://www.w3schools.com/html/html_entities.asp
So if I wanted to write the line:
15¢ ÷ 3 = 5¢ (simple division)
The code would look like:
<p>15¢ ÷ 3 = 5¢ (simple division)</p>