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, &copy 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 &#60; &lt <
greater-than sign &#62; &gt; >
inverted exclamation mark  &#161; &iexcl ¡
cent sign  &#162; &cent; ¢
pound sign &#163; &pound; £
currency sign  &#164; &curren; ¤
yen  sign &#165; &yen; ¥
broken bar &#166; &brvbar ¦
section sign &#167; &sect; §
Diaeresis &#168; &ulm; ¨
copyright sign &#169; &copy; ©
feminine ordinal indicator &#170; &ordf; ª
left-pointing double-angel quotation mark &#171; &laquo; «
not sign &#172; &not; ¬
discretionary hyphen &#173; &shy; ­
registered trade mark sign  &#174; &reg; ®
Macron &#175; &macr; ¯
degree sign &#176; &deg; °
plus or minus sign &#177; &plusmn; ±
superscript two &#178; &sup2; ²
superscript three &#179 &sup3; ³
acute accent &#180; &acute; ´
micro sign &#181; &micro; µ
paragraph sign &#182; &para;
superscript one &#185; &sup1; ¹
masculine ordinal indicator &#186; &ordm; º
right-pointing double-angel quotation mark &#187; &raquo; »
fraction one quarter &#188; &frac14; ¼
fraction one half &#189; &frac12; ½
fraction three quarters &#190; &frac34; ¾
inverted question mark &#191; &iquest; ¿
multiplication sign &#215 &times; ×
division sign &#247; &divide; ÷

 
Copyright © 2000, 2001 Proxima Design
Back Home Links e-Mail