Introduction to HTML
Text Functions
Special Characters
Copyright © 1996 - 2002 Randy D. Ralph.  All rights reserved.
  Text Functions Font Functions   Course Contents  
In place May 18, 1996.   Last updated January 5, 2001.

Using Special Character Codes:

HTML permits the use of codes to place special characters and symbols on a WWW page which might not be possible to generate from the keyboard.  Additionally, there are some characters which are reserved in HTML for command functions, most notably, < (less than), > (greater than), & (ampersand) and " (double quote).  Many browsers cannot display these characters unless they are presented using the codes shown in the tables below.  Exactly how the browser will display any text depends on the font which the user has loaded as the default.

The general form of the special character placement code is:

    &{ #code / name };

    where   code / name  can be either —

    • the actual ASCII numerical code (four places) corresponding to the desired character,
      prefaced by the ampersand / pound sign ( &# ) and followed by a semicolon ( ; ) —

      Example:

      &#0069; (   yields & ASCII character   )

      (   See the table below for standard viewable ASCII characters and their corresponding codes.   )

      or

    • a special character name (case sensitive) prefaced by the ampersand / pound sign ( &# ) and followed by the semicolon ( ; ) —

      Example:

      &Ouml; (   yields Ö character entity  )

      There are over two-hundred (200) named HTML 4.01 character entities corresponding to a wide variety of special characters including accentuated Latin characters, Greek characters, punctuation and spacers, arrows, and miscellaneous, math and logic symbols.  See the Table of HTML 4.01 Character Entities for a complete categorized listing.


Standard ASCII Character Codes:

(   Actual characters displayed depend on the font loaded by the browser.   )
(   See also the detailed Table of HTML 4.01 Character Entities.   )
Code Char. Code Char. Code Char. Code Char. Code Char.
&#0033;! &#0078;N &#0123;{ &#0168;¨ &#0213;Õ
&#0034;" &#0079;O &#0124;| &#0169;© &#0214;Ö
&#0035;# &#0080;P &#0125;} &#0170;ª &#0215;×
&#0036;$ &#0081;Q &#0126;~ &#0171;« &#0216;Ø
&#0037;% &#0082;R &#0127;N/A &#0172;¬ &#0217;Ù
&#0038;& &#0083;S &#0128; &#0173;­ &#0218;Ú
&#0039;' &#0084;T &#0129;N/A &#0174;® &#0219;Û
&#0040;( &#0085;U &#0130; &#0175;¯ &#0220;Ü
&#0041;) &#0086;V &#0131;ƒ &#0176;° &#0221;Ý
&#0042;* &#0087;W &#0132; &#0177;± &#0222;Þ
&#0043;+ &#0088;X &#0133; &#0178;² &#0223;ß
&#0044;, &#0089;Y &#0134; &#0179;³ &#0224;à
&#0045;- &#0090;Z &#0135; &#0180;´ &#0225;á
&#0046;. &#0091;[ &#0136;ˆ &#0181;µ &#0226;â
&#0047;/ &#0092;\ &#0137; &#0182; &#0227;ã
&#0048;0 &#0093;] &#0138;Š &#0183;· &#0228;ä
&#0049;1 &#0094;^ &#0139; &#0184;¸ &#0229;å
&#0050;2 &#0095;_ &#0140;Œ &#0185;¹ &#0230;æ
&#0051;3 &#0096;` &#0141;N/A &#0186;º &#0231;ç
&#0052;4 &#0097;a &#0142;N/A &#0187;» &#0232;è
&#0053;5 &#0098;b &#0143;N/A &#0188;¼ &#0233;é
&#0054;6 &#0099;c &#0144;N/A &#0189;½ &#0234;ê
&#0055;7 &#0100;d &#0145; &#0190;¾ &#0235;ë
&#0056;8 &#0101;e &#0146; &#0191;¿ &#0236;ì
&#0057;9 &#0102;f &#0147; &#0192;À &#0237;í
&#0058;: &#0103;g &#0148; &#0193;Á &#0238;î
&#0059;; &#0104;h &#0149; &#0194;Â &#0239;ï
&#0060;< &#0105;i &#0150; &#0195;Ã &#0240;ð
&#0061;= &#0106;j &#0151; &#0196;Ä &#0241;ñ
&#0062;> &#0107;k &#0152;˜ &#0197;Å &#0242;ò
&#0063;? &#0108;l &#0153; &#0198;Æ &#0243;ó
&#0064;@ &#0109;m &#0154;š &#0199;Ç &#0244;ô
&#0065;A &#0110;n &#0155; &#0200;È &#0245;õ
&#0066;B &#0111;o &#0156;œ &#0201;É &#0246;ö
&#0067;C &#0112;p &#0157;N/A &#0202;Ê &#0247;÷
&#0068;D &#0113;q &#0158;N/A &#0203;Ë &#0248;ø
&#0069;E &#0114;r &#0159;Ÿ &#0204;Ì &#0249;ù
&#0070;F &#0115;s &#0160;N/A &#0205;Í &#0250;ú
&#0071;G &#0116;t &#0161;¡ &#0206;Î &#0251;û
&#0072;H &#0117;u &#0162;¢ &#0207;Ï &#0252;ü
&#0073;I &#0118;v &#0163;£ &#0208;Ð &#0253;ý
&#0074;J &#0119;w &#0164;¤ &#0209;Ñ &#0254;þ
&#0075;K &#0120;x &#0165;¥ &#0210;Ò &#0255;ÿ
&#0076;L &#0121;y &#0166;¦ &#0211;Ó

&#0077;M &#0122;z &#0167;§ &#0212;Ô

(   See also the detailed Table of HTML 4.01 Character Entities.   )

  Text Functions Font Functions   Course Contents  
You are here:  NetStrider   »   Tutorials   »   HTML   »   TEXT   »   SPECIAL CHARACTERS   «