Special Characters
"In all large corporations, there is a pervasive fear that someone, somewhere, is having fun with a computer on company time. Networks help alleviate that fear." (John C. Dvorak)
Some text for display cannot be entered directly into an HTML document - such as & or £.
Instead these symbols must be entered using CHARACTER ENTITIES.
A character entity has three parts:
- an ampersand (&)
- an entity name or a # and an entity number
- a semicolon (;).
For example:
To display < in a web page when it is not meant to be part of the markup, you must use <
To display > in a web page when it is not meant to be part of the markup, you must use >
To display " in a web page when it is not meant to be part of the markup, you must use "
Common Character Entities:
| Symbol | Meaning | Character Entity |
|---|---|---|
| < | less than | < |
| > | greater than | > |
| & | ampersand | & |
| " | quotation marks | " |
| ¢ | cent | ¢ |
| £ | pound | £ |
| © | copyright | © |
| ® | registered trademark | ® |