Articles - Web Design

Ever wondered what the code was for certain symbols?

More articles...

...at Website Awards! Read articles submitted by various recognized award masters!

Title: ASCII Characters in HTML
By: Richard A. Berends
Dated: 05 May 2001

Ever wanted to produce that annoying symbol but didn't know what the ASCII code is for it?

HTML has long provided a set of ASCII codes to use when displaying symbols in web pages. Now you no longer need to fret any more or waste time when looking on the Internet for how to insert a Euro sign.

Below are a list of codes in use in HTML. Note that I've change the font to "Courier New", which is one of the fonts that support all ASCII characters. Remember that not all fonts support these ASCII characters! You should be okay when using traditional and often used fonts on web pages such as Verdana, Tahoma, Arial or Times New Roman.

Codes that appears in brackets are alternative codes for characters:

Character   HTML                 Explanation

            � thru      Unused
            	                Horizontal tab
            
                Line feed
             thru      Unused
            
                Carriage Return
             thru      Unused
Space                        Space
  !         !                Exclamation mark
  "         " (")       Quotation mark
  #         #                Number sign
  $         $                Dollar sign
  %         %                Percent sign
  &         &                & Ampersand
  '         '                Apostrophe
  (         (                Left parenthesis
  )         )                Right parenthesis
  *         *                Asterisk
  +         +                Plus sign
  ,         ,                Comma
  -         -                Hyphen
  .         .                Period (fullstop)
  /         /                Solidus (slash)
  :         :                Colon
  ;         &#59;                Semi-colon
  <         &#60; (&lt;)         Less than
  =         &#61;                Equals sign
  >         &#62; (&gt;)         Greater than
  ?         &#63;                Question mark
  @         &#64;                Commercial at
  [         &#91;                Left square bracket
  \         &#92;                Reverse solidus (backslash)
  ]         &#93;                Right square bracket
  ^         &#94;                Caret
  _         &#95;                Horizontal bar (underscore)
  `         &#96;                Acute accent
  {         &#123;               Left curly brace
  |         &#124;               Vertical bar
  }         &#125;               Right curly brace
  ~         &#126;               Tilde
            &#127;               Unused
  €         &#128;               Euro Sign
            &#129;               Unused
  ‚         &#130;               Low single comma quot mark
  ƒ         &#131;               Function sign
  „         &#132;               Low double comma quotation mark
  …         &#133;               Ellipses
  †         &#134;               Dagger
  ‡         &#135;               Double dagger
  ˆ         &#136;               Caret
  ‰         &#137;               Per mile sign
  Š         &#138;               Capital S Hacek
  ‹         &#139;               Less-than sign
  Œ         &#140;               Capital OE ligature
            &#141; thru &#144;   Unused
  ‘         &#145;               Single beginning quotation
  ’         &#146;               Single ending quot mark
  “         &#147;               Double beginning quot mark
  ”         &#148;               Double ending quot mark
  •         &#149;               Dot, middle
  –         &#150;               En dash
  —         &#151;               Em dash
  ˜         &#152;               Tilde
  ™         &#153;               Trademark symbol
  š         &#154;               Small s Hacek
  ›         &#155;               Greater-than sign
  œ         &#156;               Small oe ligature
            &#157; thru &#158;   Unused
  Ÿ         &#159;               Capital Y, diæresis/umlaut
            &#160; (&nbsp;)      Non-breaking Space
  ¡         &#161;               Inverted exclamation
  ¢         &#162;               Cent sign
  £         &#163;               Pound sterling
  ¤         &#164;               General currency sign
  ¥         &#165;               Yen sign
  ¦         &#166;               Broken vertical bar
  §         &#167;               Section sign
  ¨         &#168;               Diæresis / Umlaut
  ©         &#169;               Copyright
  ª         &#170;               Feminine ordinal
  «         &#171;               Left angle quote
  ¬         &#172;               Not sign
  ­         &#173; (&shy;)       Soft hyphen
  ®         &#174;               Registered trademark
  ¯         &#175;               Macron accent
  °         &#176;               Degree sign
  ±         &#177;               Plus or minus
  ²         &#178;               Superscript two
  ³         &#179;               Superscript three
  ´         &#180;               Acute accent
  µ         &#181;               Micro sign
  ¶         &#182;               Paragraph sign
  ·         &#183;               Middle dot
  ¸         &#184;               Cedilla
  ¹         &#185;               Superscript one
  º         &#186;               Masculine ordinal
  »         &#187;               Right angle quote
  ¼         &#188;               Fraction one-fourth
  ½         &#189;               Fraction one-half
  ¾         &#190;               Fraction three-fourths
  ¿         &#191;               Inverted question mark
  À         &#192; (&Agrave;)    Capital A, grave

© Copyright  -  1998-2007  -  The Maestro Awards of Excellence. All Rights Reserved
Maestro Awards is a division of Maestro Studios; Hilversum - The Netherlands