In addition to regular alphanumeric characters, special characters can be added to an HTML document using the ISO8859-1 table shown in Table C.1. It is easy to add special characters to an HTML document. For example, if you'd like the copyright symbol (") to appear somewhere in an HTML document, just insert © or © where you'd like 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 C.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 --> ë <!-- ë --> Ð <!-- -D --> <BR> using special HTML character sequences! </H1> </BODY> </HTML>
Figure C.1: Web pages can be ÍñtërnâtïôñàlízëÐ using special HTML character sequences.
URL |
Visit the following URL for more information about adding special characters to a Web page. http://www.uni-passau.de/%7Eramsch/iso8859-1.html |
Tip |
It is recommended that you use numeric codes from Table C.1. Character codes are not always equally interpreted by some browsers. |
Description | |||
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 | |||
Superscript three | |||
Acute accent | |||
Micro sign | |||
Paragraph sign | |||
Middle dot | |||
Cedilla | |||
Superscript one | |||
Masculine ordinal | |||
Right angle quote | |||
Fraction one-fourth | |||
Fraction one-half | |||
Fraction three-fourths | |||
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 | |||
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 | |||
Capital THORN, Icelandic | |||
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 diphthong (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 | |||
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 | |||
Small thorn, Icelandic | |||
Small y, dieresis |