To learn more about author Sanjaya Hettihewa, please visit the author's homepage.
In addition to regular alphanumeric characters, special characters can be added to an HTML document using the ISO8859-1 table, shown in Table B.1. It is easy to add special characters to an HTML document. For example, if you want the copyright symbol (") to appear somewhere in an HTML document, simply insert © or © where you want the symbol to appear. Note that the semicolon is necessary. An example of how special characters can be used in a Web page is given next. The Web page shown in Figure B.1 was created using the following HTML code:
<HTML> <HEAD><TITLE>HTML Special character demonstration ¬</TITLE> </HEAD> <BODY TEXT="#000000" LINK="#FF0000" VLINK="#808080" ALINK="#FF0080"> <H1> Web pages can be Í <!-- Í --> ñ <!-- ñ --> t <!-- t --> ë <!-- ë --> r <!-- r --> n <!-- n --> â <!-- â --> t <!-- t --> ï <!-- ï --> ô <!-- ô --> ñ <!-- ñ --> à <!-- à --> l <!-- l --> í <!-- í --> z <!-- z --> ë <!-- ë --> Ð <!-- q --> <BR> using special HTML character sequences! </H1> </BODY> </HTML>
Figure B.1. Web pages can be Íñtërnâtïôñàlízëd using special HTML character sequences.
URL: Visit http://www.uni-passau.de/%7Eramsch/iso8859-1.html for more information about adding special characters to a Web page.
Tip: It is recommended that you use numeric codes from Table B.1. Character codes are not always correctly interpreted by some browsers.
Description | Character | Numeric Code | Character Code |
Quotation mark | " | " | " |
Ampersand | & | & | & |
Less-than sign | < | < | < |
Greater-than sign | > | > | > |
Non-breaking space |   | | |
Inverted exclamation | ¡ | ¡ | ¡ |
Cent sign | ¢ | ¢ | ¢ |
Pound sterling | £ | £ | £ |
General currency sign | ¤ | ¤ | ¤ |
Yen sign | ¥ | ¥ | ¥ |
Broken vertical bar | | | ¦ | ¦ |
Section sign | § | § | § |
Dieresis | ¨ | ¨ | ¨ |
Copyright | " | © | © |
Feminine ordinal | ª | ª | ª |
Left angle quote | « | « | « |
Not sign | ¬ | ¬ | ¬ |
Soft hyphen | - | ­ | ­ |
Registered trademark | , | ® | ® |
Macron accent | ¯ | ¯ | ¯ |
Degree sign | ° | ° | ° |
Plus or minus | ± | ± | ± |
Superscript two | 2 | ² | ² |
Superscript three | 3 | ³ | ³ |
Acute accent | ´ | ´ | ´ |
Micro sign | µ | µ | µ |
Paragraph sign | ¶ | ¶ | ¶ |
Middle dot | · | · | · |
Cedilla | ç | ¸ | ¸ |
Superscript one | [dotlessi] | ¹ | ¹ |
Masculine ordinal | º | º | º |
Right angle quote | » | » | » |
Fraction one-fourth | 1/4 | ¼ | ¼ |
Fraction one-half | 1/2 | ½ | ½ |
Fraction three-fourths | 3/4 | ¾ | ¾ |
Inverted question mark | ¿ | ¿ | ¿ |
Capital A, grave accent | À | À | À |
Capital A, acute accent | Á | Á | Á |
Capital A, circumflex accent | Â | Â | Â |
Capital A, tilde | Ã | Ã | Ã |
Capital A, dieresis | Ä | Ä | Ä |
Capital A, ring | Å | Å | Å |
Capital AE ligature | Æ | Æ | Æ |
Capital C, cedilla | Ç | Ç | Ç |
Capital E, grave accent | È | È | È |
Capital E, acute accent | É | É | É |
Capital E, circumflex accent | Ê | Ê | Ê |
Capital E, dieresis | Ë | Ë | Ë |
Capital I, grave accent | Ì | Ì | Ì |
Capital I, acute accent | Í | Í | Í |
Capital I, circumflex accent | Î | Î | Î |
Capital I, dieresis | Ï | Ï | Ï |
Capital Eth, Icelandic | q | Ð | Ð |
Capital N, tilde | Ñ | Ñ | Ñ |
Capital O, grave accent | Ò | Ò | Ò |
Capital O, acute accent | Ó | Ó | Ó |
Capital O, circumflex accent | Ô | Ô | Ô |
Capital O, tilde | Õ | Õ | Õ |
Capital O, dieresis | Ö | Ö | Ö |
Multiply sign | * | × | × |
Capital O, slash | Ø | Ø | Ø |
Capital U, grave accent | Ù | Ù | Ù |
Capital U, acute accent | Ú | Ú | Ú |
Capital U, circumflex accent | Û | Û | Û |
Capital U, dieresis | Ü | Ü | Ü |
Capital Y, acute accent | Y | Ý | Ý |
Capital THORN, Icelandic | t | Þ | Þ |
Small sharp s | ß | ß | ß |
Small a, grave accent | à | à | à |
Small a, acute accent | á | á | á |
Small a, circumflex accent | â | â | â |
Small a, tilde | ã | ã | ã |
Small a, dieresis | ä | ä | ä |
Small a, ring | å | å | å |
Small ae ligature | æ | æ | æ |
Small c, cedilla | ç | ç | ç |
Small e, grave accent | è | è | è |
Small e, acute accent | é | é | é |
Small e, circumflex accent | ê | ê | ê |
Small e, dieresis | ë | ë | ë |
Small i, grave accent | ì | ì | ì |
Small i, acute accent | í | í | í |
Small i, circumflex accent | î | î | î |
Small i, dieresis | ï | ï | ï |
Small eth, Icelandic | u | ð | ð |
Small n, tilde | ñ | ñ | ñ |
Small o, grave accent | ò | ò | ò |
Small o, acute accent | ó | ó | ó |
Small o, circumflex accent | ô | ô | ô |
Small o, tilde | õ | õ | õ |
Small o, dieresis | ö | ö | ö |
Division sign | ÷ | ÷ | ÷ |
Small o, slash | ø | ø | ø |
Small u, grave accent | ù | ù | ù |
Small u, acute accent | ú | ú | ú |
Small u, circumflex accent | û | û | û |
Small u, dieresis | ü | ü | ü |
Small y, acute accent | y | ý | ý |
Small thorn, Icelandic | w | þ | þ |
Small y, dieresis | ÿ | ÿ | ÿ |
© Copyright, Macmillan Computer Publishing. All rights reserved.