Special characters in HTML The number of a characters and symbols in existence is so enormous that all of them can not be displayed on a regular sized keyboard. Say For example the © copyright symbol - it’s all over the web, yet it seems to be one of those symbols missing from the keyboard.
Coming to <, this symbol when used in its basic form does not appear on a browser!
Well, Thanks to HTML we come up with what’s known as an Entity.
Entities are used to display characters/symbols which cannot be entered via the keyboard or because of conflicting codes in HTML.
An entity also known as an ampersand entity can be represented in two forms: Named Entities and Numeric Entities
Named Entities A Named entity (character entity) is composed by an ampersand symbol along with an entity name followed by a semicolon. For Instance, the greater than symbol > would be encoded as: >. Here gt stands as an abbreviation for greater than, as you can see Named Entities are easy to remember. But, with the increasing number of browsers coming up, not all may support Named Entities, that’s where Numeric Entities come into action.
Numeric Entities You create a Numeric Entity by starting with an ampersand and a Hash symbol followed by an entity number and finally a semicolon. Considering the greater than symbol again >, the corresponding Numeric Entity representation would be: >. Unlike Named Entities it’s difficult to remember these, but considering the different browsers and the versions available up to date, a Numeric Entity would be more reliable.
Entities are case sensitive though HTML is not! Here’s a list of Entities:
Result |
Description |
Name Code |
Number Code |
|
horizontal tab |
|
	 |
|
line feed |
|
|
|
space |
|
  |
! |
exclamation mark |
|
! |
" |
double quotation mark |
" |
" |
# |
number sign |
|
# |
$ |
dollar sign |
|
$ |
% |
percent sign |
|
% |
& |
ampersand |
& |
& |
' |
apostrophe |
|
' |
( |
left parenthesis |
|
( |
) |
right parenthesis |
|
) |
* |
asterisk |
|
* |
+ |
plus sign |
|
+ |
, |
comma |
|
, |
- |
hyphen |
|
- |
. |
period |
|
. |
/ |
slash |
⁄ |
/ |
0 - 9 |
Digits 0-9 |
|
0 to 9 |
: |
colon |
|
: |
; |
semicolon |
|
; |
< |
lesser than |
< |
< |
= |
equals sign |
|
= |
> |
greater than |
> |
> |
? |
question mark |
|
? |
@ |
at sign |
|
@ |
A - Z |
uppercase letters A-Z |
|
A to Z |
[ |
left square bracket |
|
[ |
\ |
backslash |
|
\ |
] |
right square bracket |
|
] |
^ |
caret |
|
^ |
_ |
horizontal bar (underscore) |
|
_ |
` |
grave accent |
|
` |
a - z |
lowercase letters a-z |
|
a to z |
{ |
left curly brace |
|
{ |
| |
vertical bar |
|
| |
} |
right curly brace |
|
} |
~ |
tilde |
|
~ |
– |
en dash |
– |
– |
— |
em dash |
— |
— |
|
nonbreaking space |
|
  |
¡ |
inverted exclamation |
¡ |
¡ |
¢ |
cent sign |
¢ |
¢ |
£ |
pound sterling |
£ |
£ |
¤ |
general currency sign |
¤ |
¤ |
¥ |
yen sign |
¥ |
¥ |
¦ |
broken vertical bar |
¦ |
¦ |
§ |
section sign |
§ |
§ |
¨ |
umlaut |
¨ |
¨ |
© |
copywrite |
© |
© |
ª |
feminine ordinal |
ª |
ª |
« |
left angle quote |
« |
« |
¬ |
not sign |
¬ |
¬ |
® |
registered trademark |
® |
® |
¯ |
macron accent |
¯ |
¯ |
° |
degree sign |
° |
° |
± |
plus or minus |
± |
± |
² |
superscript two |
² |
² |
³ |
superscript three |
³ |
³ |
´ |
acute accent |
´ |
´ |
µ |
micro sign |
µ |
µ |
¶ |
paragraph sign |
¶ |
¶ |
· |
middle dot |
· |
· |
¸ |
cedilla |
¸ |
¸ |
¹ |
superscript one |
¹ |
¹ |
º |
masculine ordinal |
º |
º |
» |
right angle quote |
» |
» |
¼ |
one-fourth |
¼ |
¼ |
½ |
one-half |
½ |
½ |
¾ |
three-fourths |
¾ |
¾ |
¿ |
inverted question mark |
¿ |
¿ |
À |
uppercase A, grave accent |
À |
À |
Á |
uppercase A, acute accent |
Á |
Á |
 |
uppercase A, circumflex accent |
 |
 |
à |
uppercase A, tilde |
à |
à |
Ä |
uppercase A, umlaut |
Ä |
Ä |
Å |
uppercase A, ring |
Å |
Å |
Æ |
uppercase AE |
Æ |
Æ |
Ç |
uppercase C, cedilla |
Ç |
Ç |
È |
uppercase E, grave accent |
È |
È |
É |
uppercase E, acute accent |
É |
É |
Ê |
uppercase E, circumflex accent |
Ê |
Ê |
Ë |
uppercase E, umlaut |
Ë |
Ë |
Ì |
uppercase I, grave accent |
Ì |
Ì |
Í |
uppercase I, acute accent |
Í |
Í |
Î |
uppercase I, circumflex accent |
Î |
Î |
Ï |
uppercase I, umlaut |
Ï |
Ï |
Ð |
uppercase Eth, Icelandic |
Ð |
Ð |
Ñ |
uppercase N, tilde |
Ñ |
Ñ |
Ò |
uppercase O, grave accent |
Ò |
Ò |
Ó |
uppercase O, acute accent |
Ó |
Ó |
Ô |
uppercase O, circumflex accent |
Ô |
Ô |
Õ |
uppercase O, tilde |
Õ |
Õ |
Coming up next : Attributes
|