HTML Entities
Some characters are reserved in HTML and they have special meaning when used in HTML document.
HTML Entities Example
If you use the less than (<) or greater than (>) signs in your text, the browser might mix them with tags. Character entities are used to display reserved characters in HTML.
HTML processors must support following five special characters listed :
Symbol |
Description |
Entity Name |
Number Code |
" |
Quotation Mark |
" |
" |
' |
apostrophe |
' |
' |
& |
ampersand |
& |
& |
< |
less-than |
< |
< |
> |
greater-than |
> |
> |
Non-breaking Space
A common character entity used in HTML is the non-breaking space :
A non-breaking space is a space that will not break into a new line.
Two words separated by a non-breaking space will stick together. If you write 10 spaces in your text, the browser will remove 9 of them. To add real spaces to your text, you can use the character entity.
ISO 8859-1 Symbol Entities
Result |
Description |
Entity Name |
Entity Number |
|
non-breaking space |
|
  |
! |
inverted exclamation mark |
¡ |
¡ |
¤ |
currency |
¤ |
¤ |
¢ |
cent |
¢ |
¢ |
£ |
pound |
£ |
£ |
¥ |
yen |
¥ |
¥ |
¦ |
brvbar vertical bar |
¦ |
¦ |
§ |
section |
§ |
§ |
¨ |
spacing diaeresis |
¨ |
¨ |
© |
copyright |
© |
© |
® |
registered trademark |
® |
® |
™ |
trademark |
™ |
™ |
± |
plus-or-minus |
± |
± |
¼ |
fraction 1/4 |
¼ |
¼ |
½ |
fraction 1/2 |
½ |
½ |
¾ |
fraction 3/4 |
¾ |
¾ |
¿ |
inverted question mark |
¿ |
¿ |
× |
multiplication |
× |
× |
÷ |
division |
÷ |
÷ |
Other Entities Supported by HTML Browsers
Result |
Description |
Entity Name |
Entity Number |
˜ |
small tilde |
˜ |
˜ |
‘ |
left single quotation mark |
‘ |
‘ |
’ |
right single quotation mark |
’ |
’ |
“ |
left double quotation mark |
“ |
“ |
” |
right double quotation mark |
” |
” |
€ |
euro |
€ |
€ |
† |
dagger |
† |
† |