A number of character sets can be used in displaying Web pages. ISO 8859-1 (or Latin1) is a character set that contains characters used in most Western European languages and is the most commonly used character set used in displaying Web pages. Other versions of ISO 8859 are available for displaying non-Western European languages requiring additional characters.
HTML 4 also allows the designation of characters from the Unicode character set, which contains many thousands more possible characters that can be displayed in Web pages. In the following sections, you'll find tables showing the reserved, unused, and special characters included in the ISO 8859-1 character set.
The ISO 8859-1 character set is the official character set for Web pages, at least as far as Western languages (English, French, German, and so on) are concerned. It is an 8-bit character set, which allows for 256 code positions. The code positions 000 through 031 and 127 are assigned as control characters (line feed, space character, and so forth). Positions 032 through 126 correspond to the US-ASCII characters that you can type in at the keyboard. Code positions 128 through 159 are designated as "unused" in ISO 8859-1, although both the Macintosh and Windows systems assign characters to many of these positions. Code positions 160 through 255 contain characters that can be used in Web pages and should be displayable in most Web browsers. Windows and UNIX systems display all these characters because the ISO 8859-1 character set is also their native character set. However, 14 of the officially sanctioned characters are missing from the Macintosh native character set (which is a different character set than the ISO 8859-1 character set). ISO 8859-1 was the standard character set for Web pages coded using HTML 2.0.
These are the numerical and named characters that are reserved for formatting HTML tags and codes.
Number |
Name |
Description |
Character |
---|---|---|---|
" |
" |
Double quotation |
" |
& |
& |
Ampersand |
& |
< |
< |
Left angle bracket |
< |
> |
> |
Right angle bracket |
> |
The < or > characters (left or right angle brackets) should not be typed directly into an HTML document, since they are used to designate the start or end of an HTML tag; to use these characters "as is," you need to type in the numerical or named entity code (< and >). Double quotations and ampersands, on the other hand, generally need only be replaced in an HTML file if they are part of an HTML code that you want to display "as is."
You should use character entity names with caution, because versions of Netscape Navigator prior to 4.0 only recognize the following character entity names:
All the reserved character entity names (", &, <, and >).
The copyright (©), registered (®), and non-breakable space ( ) entity names.
All the accented characters (starting with À and ending with ÿ), with the exception of the Y-acute and y-acute characters (Ý and ý), which should be avoided all together because they aren't included in the Macintosh character set.
For inserting all other characters, you should stick to using numerical entity codes.
Both Windows and the Macintosh assign characters to many of the code positions that the ISO 8859-1 character set designates as unused, and 12 of these extra characters are dissimilar on the two systems.
There's no guarantee that any of these "unused" characters will display on other platforms. Generally, it is best to avoid using these characters in an HTML file. A possible exception is the trademark symbol (™), which displays on Macintosh, Windows, and most UNIX systems, but it is also available as a Unicode character (™). However, if for legal reasons you want to ensure that your trademark symbol displays on all platforms, you should use <sup>(TM)</sup> instead. (The trademark's entity name, ™, should be avoided, however, because no version of Netscape Navigator supports it.)
The following characters, 160 through 255, are part of the ISO 8859-1 character set. These are the only characters that are officially designated for use in HTML documents. They should generally be available on any operating system that uses the ISO 8859-1 character set. A number of these characters, however, may not be displayed on the Macintosh, because they are not included in its default character set, and should probably be avoided (they are marked with "not Mac"). Internet Explorer 5 for the Macintosh, however, substitutes a font that does include the missing characters.
FIND IT ONLINE
For additional information on the ISO 8859-1 character set, see A. J. Flavell's page on ISO 8859-1 at ppewww.ph.gla.ac.uk/~flavell/iso8859/.