HTML Special Characters

In HTML code you use lesser than (<) symbol as tag start and greater than (>) symbol as tag end. But if you want to display it as a symbol in the webpage you have to go with special characters.



Special Characters is used to display keyboard and other special symbols as symbol in the webpage. For example :
               <   -  <
               >   -  >   

The most common character entities have been collected by the International Organization for Standardization and compiled in the ISO Latin Alphabet No.1 table which contains 255 characters.

ISO special character codes:

Punctuation
HTML Entity
(case sensitive)
ISO Latin-1 code
name or meaning
en dash
em dash
¡
¡
¡
inverted exclamation
¿
¿
¿
inverted question mark
"
"
"
quotation mark
left double curly quote
right double curly quote
'
´
'
apostrophe (single quote)
left single curly quote
right single curly quote

Symbols
&
&
&
ampersand
¢
¢
¢
cent
©
©
©
copyright
÷
÷
÷
divide
> 
>
>
greater than
< 
<
<
less than
µ
µ
µ
micron
·
·
·
pilcrow (paragraph sign)
±
±
±
plus/minus
Euro
£
£
£
British Pound Sterling
®
®
®
registered
§
§
§
section
trademark
¥
¥
¥
Japanese Yen
°
°
°
Degree

Notes:
  • The " entity was mistakenly omitted from the HTML 3.2 specification. While use of " generates error reports when validating against 3.2, browsers have continued to recognize the entity. The omission has been corrected in the HTML 4.0 specification.
  • The non-breaking space (  or  ) can be used not only to prevent the separation of words by line wraps.
  • The middle dot (· or ·) can be used as a bullet and embedded anywhere in text. Because it is equal in size to a period, however, it may be necessary to apply   or tags to enhance its graphic effect (use of   or   elements is not recommended, as these will alter the character's vertical spacing relative to other characters in the same line).









No comments:
Write comments