Basics : Lesson 4
Special Characters
If you want to write '<' or '>' on your web page to be displayed as it is, browser won't display it. In fact it will treat it as a tag. There are many characters which won't be displayed as we type then as they are.
For this, there is a special code for each special character. For example, if you want to display '<' on the web page; code for this is '<' or here 'lt' stands for 'less than'.
Here is a list of common special character which are used frequently.
Result |
Description |
Entity name |
Entity Number |
" |
quotation mark |
" |
" |
' |
apostrophe |
' (does not work in IE) |
' |
& |
ampersand |
& |
& |
< |
less-than |
< |
< |
> |
greater-than |
> |
> |
|
non-breaking space |
|
  |
¡ |
inverted exclamation mark |
¡ |
¡ |
¤ |
currency |
¤ |
¤ |
¢ |
cent |
¢ |
¢ |
£ |
pound |
£ |
£ |
¥ |
yen |
¥ |
¥ |
¦ |
broken vertical bar |
¦ |
¦ |
§ |
section |
§ |
§ |
¨ |
spacing diaeresis |
¨ |
¨ |
© |
copyright |
© |
© |
ª |
feminine ordinal indicator |
ª |
ª |
« |
angle quotation mark (left) |
« |
« |
¬ |
negation |
¬ |
¬ |
|
soft hyphen |
­ |
­ |
® |
registered trademark |
® |
® |
™ |
trademark |
™ |
™ |
¯ |
spacing macron |
¯ |
¯ |
° |
degree |
° |
° |
± |
plus-or-minus |
± |
± |
² |
superscript 2 |
² |
² |
³ |
superscript 3 |
³ |
³ |
´ |
spacing acute |
´ |
´ |
µ |
micro |
µ |
µ |
¶ |
paragraph |
¶ |
¶ |
· |
middle dot |
· |
· |
¸ |
spacing cedilla |
¸ |
¸ |
¹ |
superscript 1 |
¹ |
¹ |
º |
masculine ordinal indicator |
º |
º |
» |
angle quotation mark (right) |
» |
» |
¼ |
fraction 1/4 |
¼ |
¼ |
½ |
fraction 1/2 |
½ |
½ |
¾ |
fraction 3/4 |
¾ |
¾ |
¿ |
inverted question mark |
¿ |
¿ |
× |
multiplication |
× |
× |
÷ |
division |
÷ |
÷ |