|
Adding Special Characters
So you always wanted to insert a special
character, but you didn't know how. Well there are three way in doing this.
Whichever way you choose, you have to star all special character (entities)
with an ampersand (&) and end with a semicolon (;)
-
Using character notation. For example, © is the entity for the
copyright symbol. Character notation to indicate entities is one of the
rare parts of HTML that is case-sensitive.
-
Using decimal notation. The decimal representation of a copyright symbol
is ©
-
Using Hex notation. The copyright symbol in this case is © (A9
in hexadecimal notation equals 169 in the decimal system). All hex numbers
are preceded by a lowercase x
Here is a table of the most common special characters
Entity |
Dec notation |
Character notation |
Preview |
quotation mark |
" |
" |
" |
ampersand |
& |
& |
& |
less-than sign |
< |
< |
< |
greater-than sign |
> |
> |
> |
inverted exclamation mark |
¡ |
¡ |
¡ |
cent sign |
¢ |
¢ |
¢ |
pound sign |
£ |
£ |
£ |
currency sign |
¤ |
¤ |
¤ |
yen sign |
¥ |
¥ |
¥ |
broken bar |
¦ |
¦ |
¦ |
section sign |
§ |
§ |
§ |
Diaeresis |
¨ |
&ulm; |
¨ |
copyright sign |
© |
© |
© |
feminine ordinal indicator |
ª |
ª |
ª |
left-pointing double-angel quotation mark |
« |
« |
« |
not sign |
¬ |
¬ |
¬ |
discretionary hyphen |
­ |
­ |
|
registered trade mark sign |
® |
® |
® |
Macron |
¯ |
¯ |
¯ |
degree sign |
° |
° |
° |
plus or minus sign |
± |
± |
± |
superscript two |
² |
² |
² |
superscript three |
³ |
³ |
³ |
acute accent |
´ |
´ |
´ |
micro sign |
µ |
µ |
µ |
paragraph sign |
¶ |
¶ |
¶ |
superscript one |
¹ |
¹ |
¹ |
masculine ordinal indicator |
º |
º |
º |
right-pointing double-angel quotation mark |
» |
» |
» |
fraction one quarter |
¼ |
¼ |
¼ |
fraction one half |
½ |
½ |
½ |
fraction three quarters |
¾ |
¾ |
¾ |
inverted question mark |
¿ |
¿ |
¿ |
multiplication sign |
× |
× |
× |
division sign |
÷ |
÷ |
÷ |
|