This appendix is a reference to the HTML tags you can use in your documents. Unless otherwise noted, all of the tags listed here are supported by both Microsoft Explorer 3.0 and Netscape Navigator 3.0. Note that some other browsers do not support all
the tags listed, and some of the tags listed as (MS) may also be supported in the final shipping version of Netscape 3.0.
The proposed HTML style sheet specification is also not covered here. Refer to the Netscape (http://home.netscape.com/) or Microsoft (http://www.microsoft.com/) Web sites
for details on this and other late-breaking changes to the new HTML 3.2 standard.
These tags are used to create a basic HTML page with text, headings, and lists. An (MS) beside the attribute indicates Microsoft.
| <!- ... -> | Creates a comment. Can also be used to hide JavaScript from browsers that do not support it. |
| <COMMENT>...</COMMENT> | The new official way of specifying comments. |
| <HTML>...</HTML> | Encloses the entire HTML document. |
| <HEAD>...</HEAD> | Encloses the head of the HTML document. |
| <BODY>...</BODY> | Encloses the body (text and tags) of the HTML document. |
| HREF="..." | The full URL of this document. | |
| <ISINDEX> | Indicates that this document is a gateway script that allows searches. | |
All heading tags accept the following attribute:
| ALIGN="..." | Possible values are CENTER, LEFT, and RIGHT. |
| <P>...</P> | A plain paragraph. The closing tag (</P>) is optional. |
| ALIGN="..." | Align text to CENTER, LEFT, or RIGHT. | |
| <DIV>...</DIV> | A region of text to be formatted. | |
| ALIGN="..." | Align text to CENTER, LEFT, or RIGHT. |
| <A>...</A> | With the HREF attribute, creates a link to another document or anchor; with the NAME attribute, creates an anchor that can be linked to. |
| HREF="..." | The URL of the document to be called when the link is activated. | |
| NAME="..." | The name of the anchor. | |
| REL="..." | The relationship between the linked-to document and the current document; for example, "TOC" or "Glossary" (not commonly used). | |
| REV="..." | A reverse relationship between the current document and the linked-to document (not commonly used). | |
| URN="..." | A Uniform Resource Number (URN), a unique identifier different from the URL in HREF (not commonly used) | |
| TITLE="..." | The title of the linked-to document (not commonly used). | |
| METHODS="..." | The method with which the document is to be retrieved; for example, FTP, Gopher, and so on (not commonly used). | |
| TARGET="..." | The name of a frame that the linked document should appear in. |
| <OL>...</OL> | An ordered (numbered) list. |
| TYPE="..." | The type of numerals to label the list. Possible values are A, a, I, i, 1. | |
| START="..." | The value with which to start this list. | |
| <UL>...</UL> | An unordered (bulleted) list. | |
| <HR> | A horizontal rule line. |
| SIZE="..." | The default size of the font, from 1 to 7. Default is 3. |
| <IMG> | Inserts an inline image into the document. |
| SRC="..." | The URL of the WAV, AU, or MIDI sound file to embed. | |
| LOOP="..." (MS) | The number of times a video clip will loop. (-1 or INFINITE means to loop indefinitely.) | |
| <OBJECT> (MS) | Inserts an image, video, Java applet, or ActiveX OLE control into a document. | |
NOTE: The full syntax for the <OBJECT> tag is not yet completely finalized. Check http://www.w3.org/pub/WWW/TR/WD-object.html and http://www.microsoft.com/intdev/author/ for the latest attributes supported by the HTML 3.2 standard and implemented in Microsoft Internet Explorer.
| <EMBED> (Netscape only!) | Embeds a file to be read or displayed by a plug-in application. |
NOTE: In addition to the following standard attributes, you can specify applet-specific attributes to be interpreted by the plug-in that displays the embedded object.
| SHAPE="..." | The shape of the clickable area. Currently, only RECT is supported. | |
| COORDS="..." | The left, top, right, and bottom coordinates of the clickable region within an image. | |
| HREF="..." | The URL that should be loaded when the area is clicked. | |
| NOHREF | Indicates that no action should be taken when this area of the image is clicked. |
| <FORM>...</FORM> | Indicates an input form. |
| SELECTED | With this attribute included, the <OPTION> will be selected by default in the list. | |
| VALUE="..." | The value to submit if this <OPTION> is selected when the form is submitted. |
| <TABLE>...</TABLE> | Creates a table that can contain a caption (<CAPTION>) and any number of rows (<TR>). |
| ALIGN="..." | The position of the caption. Possible values are TOP and BOTTOM. | |
| <TR>...</TR> | Defines a table row, containing headings and data (<TR> and <TH> tags). | |
| ` | ALIGN="..." | The horizontal alignment of the contents of the cell. Possible values are LEFT, RIGHT, and CENTER. |
| VALIGN="..." | The vertical alignment of the contents of the cell. Possible values are TOP, MIDDLE, BOTTOM, and BASELINE. | |
| ROWSPAN="..." | The number of rows this cell will span. | |
| COLSPAN="..." | The number of columns this cell will span. | |
| NOWRAP | Does not automatically wrap the contents of this cell. | |
| WIDTH="..." | The width of this column of cells, in exact pixel values or as a percentage of the table width. | |
| BACKGROUND="..." (MS) | Background image to tile within the cell. | |
| BGCOLOR="..." (MS) | Background color of the cell. | |
| BORDERCOLOR="..." (MS) | Border color (used with BORDER="..."). | |
| BORDERCOLORLIGHT="..." (MS) | Color for light part of 3D-look borders (used with BORDER="..."). | |
| BORDERCOLORDARK="..." (MS) | Color for dark part of 3D-look borders (used with BORDER="..."). | |
| <THEAD> (MS) | Begins the header section of a table. The closing </THEAD> tag is optional. | |
| <TBODY> (MS) | Begins the body section of a table. The closing </TBODY> tag is optional. | |
| <TFOOT> (MS) | Begins the footer section of a table. The closing </TFOOT> tag is optional. | |
| <COL>...</COL> (MS) | Sets width and alignment properties for one or more columns. | |
| WIDTH="..." | Width of column(s) in pixels or relative width followed by a * ("2*" columns will be twice as wide as "1*" columns, for example). | |
| ALIGN="..." | Text alignment within the column(s). Valid values are "center", "justify", "left", and "right". | |
| SPAN="..." | Number of columns that the properties specified in this <COL> tag apply to. | |
| <COLGROUP>...</COLGROUP> | Sets properties of a group of columns all at once (should enclose one or more <COL> tags). | |
| ALIGN="..." | Text alignment within the columns. Valid values are "center", "justify", "left", and "right". | |
| VALIGN="..." | Vertical alignment of text within the columns. Valid values are "baseline", "bottom", "middle", and "top". |
| <FRAMESET>...</FRAMESET> | Divides the main window into a set of frames that can each display a separate document. |
| <APPLET> Inserts a self | running Java applet. |
NOTE: In addition to the following standard attributes, you can specify applet-specific attributes to be interpreted by the Java applet itself.
| LANGUAGE="..." | Currently only JAVASCRIPT is supported by Netscape. Both JAVASCRIPT and VBSCRIPT are supported by Microsoft. | |
| SRC="..." | Specifies the URL of a file that includes the script program. |
| <MARQUEE>...</MARQUEE> (MS) | Displays text in a scrolling marquee. |
| WIDTH="..." | The width of the embedded object in pixels or percentage of window width. | |
| HEIGHT="..." | The height of the embedded object in pixels or percentage of window height. | |
| ALIGN="..." | Determines the alignment of the text outside the marquee. Values are TOP, MIDDLE, and BOTTOM. | |
| BORDER="..." | Draws a border of the specified size in pixels to be drawn around the media. | |
| BEHAVIOR="..." | How the text inside the marquee should behave. Options are SCROLL (continuous scrolling), SLIDE (slide text in and stop), and ALTERNATE (bounce back and forth). | |
| BGCOLOR="..." | Background color for the marquee. | |
| DIRECTION="..." | Direction for text to scroll (LEFT or RIGHT). | |
| VSPACE="..." | Space above and below the marquee, in pixels. | |
| HSPACE="..." | Space on each side of the marquee, in pixels. | |
| SCROLLAMOUNT="..." | Number of pixels to move each time text in the marquee is redrawn. | |
| SCROLLDELAY="..." | Number of milliseconds between each redraw of marquee text. | |
| LOOP="..." (MS) | The number of times marquee will loop. (-1 or INFINITE means to loop indefinitely.) |
Table D.1 contains the possible numeric and character entities for the ISO-Latin-1 (ISO8859-1) character set. Where possible, the character is shown.
Note: Not all browsers can display all characters, and some browsers may even display characters different from those that appear in the table. Newer browsers seem to have a better track record for handling character entities, but be sure to test your HTML files extensively with multiple browsers if you intend to use these entities.
| Character | Numeric Entity | Character Entity | Description |
| �- | Unused | ||
| 	 | Horizontal tab | ||
| | Line feed | ||
|  | Unused | ||
|   | 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) | |
| 09 | 09 | Digits 0-9 | |
| : | : | Colon | |
| ; | ; | Semicolon | |
| < | < | < | Less than |
| = | = | Equals sign | |
| > | > | > | Greater than |
| ? | ? | Question mark | |
| @ | @ | Commercial "at" | |
| AZ | A-Z | Letters A-Z | |
| [ | [ | Left square bracket | |
| \ | \ | Reverse solidus (backslash) | |
| ] | ] | Right square bracket | |
| ^ | ^ | Caret | |
| - | _ | Horizontal bar | |
| ' | ` | Grave accent | |
| az | az | Letters a-z | |
| { | { | Left curly brace | |
| | | | | Vertical bar | |
| } | } | Right curly brace | |
| ~ | ~ | Tilde | |
|   | Unused | ||
| ¡ | ¡ | ¡ | Inverted exclamation |
| ¢ | ¢ | ¢ | Cent sign |
| £ | £ | £ | Pound sterling |
| _ | ¤ | ¤ | General currency sign |
| ¥ | ¥ | ¥ | Yen sign |
| | | ¦ | ¦ or brkbar; | Broken vertical bar |
| | § | § | Section sign |
| _ | ¨ | ¨ | Umlaut (dieresis) |
| _ | © | © | Copyright |
| ª | ª | ª | Feminine ordinal |
| _ | « | « | Left angle quote, guillemot left |
| ^ | ¬ | ¬ | Not sign |
| - | ­ | ­ | Soft hyphen |
| _ | ® | ® | Registered trademark |
| _ | ¯ | &hibar; | Macron accent |
| | ° | ° | Degree sign |
| ± | ± | ± | Plus or minus |
| 2 | ² | ² | Superscript two |
| 3 | ³ | ³ | Superscript three |
| _ | ´ | ´ | Acute accent |
| µ | µ | µ | Micro sign |
| | ¶ | ¶ | Paragraph sign |
| | · | · | Middle dot |
| _ | ¸ | ¸ | Cedilla |
| 1 | ¹ | ¹ | Superscript one |
| º | º | º | Masculine ordinal |
| _ | » | » | Right angle quote, guillemot right |
| 1/4 | ¼ | ¼ | Fraction one-fourth |
| 1/2 | ½ | ½ | Fraction one-half |
| 3/4 | ¾ | ¾ | Fraction three-fourths |
| ¿ | ¿ | ¿ | Inverted question mark |
| _ | À | À | Capital A, grave accent |
| _ | Á | Á | Capital A, acute accent |
| _ | Â | Â | Capital A, circumflex accent |
| _ | Ã | Ã | Capital A, tilde |
| Ä | Ä | Ä | Capital A, dieresis or umlaut mark |
| - | Å | Å | Capital A, ring |
| Æ | Æ | Æ | Capital AE diphthong (ligature) |
| Ç | Ç | Ç | Capital C, cedilla |
| _ | È | È | Capital E, grave accent |
| É | É | É | Capital E, acute accent |
| _ | Ê | Ê | Capital E, circumflex accent |
| _ | Ë | Ë | Capital E, dieresis or umlaut mark |
| _ | Ì | Ì | Capital I, grave accent |
| _ | Í | Í | Capital I, acute accent |
| _ | Î | Î | Capital I, circumflex accent |
| _ | Ï | Ï | Capital I, dieresis or umlaut mark |
| - | Ð | Ð | Capital Eth, Icelandic |
| Ñ | Ñ | Ñ | Capital N, tilde |
| _ | Ò | Ò | Capital O, grave accent |
| _ | Ó | Ó | Capital O, acute accent |
| _ | Ô | Ô | Capital O, circumflex accent |
| _ | Õ | Õ | Capital O, tilde |
| Ö | Ö | Ö | Capital O, dieresis or umlaut mark |
| ' | × | Multiply sign | |
| _ | Ø | Ø | Capital O, slash |
| _ | Ù | Ù | Capital U, grave accent |
| _ | Ú | Ú | Capital U, acute accent |
| _ | Û | Û | Capital U, circumflex accent |
| Ü | Ü | Ü | Capital U, dieresis or umlaut mark |
| _Y | Ý | Ý | Capital Y, acute accent |
| Þ | Þ | Capital THORN, Icelandic | |
| ß | ß | Small sharp s, German (szligature) | |
| à | à | à | Small a, grave accent |
| á | á | á | Small a, acute accent |
| â | â | â | Small a, circumflex accent |
| _ | ã | ã | Small a, tilde |
| ä | ä | &aauml; | Small a, dieresis or umlaut mark |
| - | å | å | 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 or umlaut mark |
| ì | ì | ì | Small i, grave accent |
| í | í | í | Small i, acute accent |
| î | î | î | Small i, circumflex accent |
| ï | ï | ï | Small i, dieresis or umlaut mark |
| _ | ð | ð | Small eth, Icelandic |
| ñ | ñ | ñ | Small n, tilde |
| ò | ò | ò | Small o, grave accent |
| ó | ó | ó | Small o, acute accent |
| ô | ô | ô | Small o, circumflex accent |
| _ | õ | õ | Small o, tilde |
| ö | ö | ö | Small o, dieresis or umlaut mark |
| - | ÷ | Division sign | |
| ø | ø | ø | Small o, slash |
| ù | ù | ù | Small u, grave accent |
| ú | ú | ú | Small u, acute accent |
| û | û | û | Small u, circumflex accent |
| ü | ü | ü | Small u, dieresis or umlaut mark |
| _y | ý | ý | Small y, acute accent |
| þ | þ | Small thorn, Icelandic | |
| ÿ | ÿ | ÿ | Small y, dieresis or umlaut mark |