This composite file describes all HTML tags. It is too large for most users and is available on request only.
This table:
Support 2.0, 3.0, 3.2
1.1+
1.0+
alerts you to tags not supported by all browsers. The support page explains the table, and the icons on some attributes, in more detail.
This page was created as part of our HTML curriculum, featuring
This is a joint effort of CDI Corporate Education Services and Gregory Consulting and is Copyright © 1995 - 2001, CDI Corporate Education Services Limited. Please report any errors or omissions to Kate Gregory.
| Support: |
<ABBREV>text</ABBREV>
The abbreviation tag defines an abbreviation. It is typically displayed just like normal text, but is used by automatic indexers.
| Support: |
<ACRONYM>text</ACRONYM>
The acronym tag defines an acronym. It is typically displayed just like normal text, but is used by automatic indexers.
<ADDRESS>text</ADDRESS>
![]()
<ADDRESS NOWRAP>text</ADDRESS>
The address tag defines text that gives an address or other contact information. It is typically displayed in italics, slightly indented, and is used by automatic indexers. The NOWRAP attribute stops the browser from wrapping except where <BR>'s are.
<A NAME="anchor-name">"#anchor-name"
<A HREF=>link-text</A>url"
<A HREF=">link-text</A>url#anchor-name"
<A HREF=">link-text</A>
The anchor tag defines either a link or an anchor in a document. The anchor tag must contain either a NAME attribute or an HREF attribute, or both.
There are three optional attributes that are no longer commonly used with anchor, though they are used with LINK:
REF="relationship"- defines the relationship between this document and the
HREFURL.
REV="relationship"- defines the relationship between the
HREFURL and this document. (REVstands for reverse, because it is the reverse of theREFattribute.)
TITLE="document-name"- No longer commonly used, indicates the
TITLEof the document pointed to by theHREFURL.
![]()
![]()
TARGET="target window name"- Will load the document pointed to by HREF into the window specified by "target window name".
Anchors with a SHAPE attribute may appear inside FIG tags. These anchors are described with the FIG tag.
An anchor name can also be defined with the ID attribute in many other markup tags. For example, the source:
<P ID=jumppoint>This is a paragraph with a jump point defined in it.
defines an anchor called jumppoint at the start of the paragraph. Almost every element, including lists, list items, images, and headers, can have an ID attribute.
The following are the predefined target names:
_blank- Will cause the link to be loaded into a new blank window.
_self- Will cause the link to be loaded into the same window the link was in.
_parent- Will cause the link to be loaded into the parent of this document.
_top- Will cause the link to be loaded into the full body of this window.
| Support: |
<AREA SHAPE="shape"ALT="text"CO-ORDS="co-ords"HREF="URL">
<AREA SHAPE="shape"ALT="text"CO-ORDS="co-ords"HREF="URL"TARGET="target window name>
<AREA SHAPE="shape"ALT="text"CO-ORDS="co-ords"NOHREF>
The area tag, valid only within a MAP, defines areas that act as hotspots within an image. Typically a map will have multiple AREA tags; if the user clicks at
a location that is inside two or more defined areas the one that appears first within the MAP entry is used.
The NOHREF attribute means that clicks here will not cause a link to be followed.
The SHAPE attribute can be one of RECT, CIRCLE, POLY or DEFAULT. CO-ORDS gives the co-ordinates, in pixels, measured from the upper left corner of
the image, of the defining points for the shape. For RECT these are left, top, right, bottom. For CIRCLE they are Xcentre, Ycentre, radius. For POLY they
are x1, y1, x2, y2, ... xn, yn. The DEFAULT area, maps all areas not already specified in another AREA tag and no co-ordinates are required.
If Target is specified then the document pointed to by HREF will be loaded into the window specified by "target window name". The following
are the predefined target names:
_blank- Will cause the link to be loaded into a new blank window.
_self- Will cause the link to be loaded into the same window the link was in.
_parent- Will cause the link to be loaded into the parent of this document.
_top- Will cause the link to be loaded into the full body of this window.
| Support: |
<AUTHOR>text</AUTHOR>text
<AU></AU>
The author tag defines text that names the author of a document. It is typically displayed just like normal text, but is used by automatic indexers.
| Support: |
<BGSOUND SRC="URL">
<BGSOUND SRC="URL"LOOP=n>
The background sound tag identifies a .wav, .au, or.mid resource that will be played when the page is opened. The optional LOOP attribute will cause
the resource to be played n times. LOOP="INFINITE" will cause the resource to be played continuously as long as the page is open.
| Support: |
<BANNERattributes</BANNER>
The banner element defines an image or block of text that does not scroll with the document and is displayed at the top of the screen as the user scrolls through the document. Details of the attributes are not yet available -- use a BANNER attribute in the LINK section of the HEAD.
<BASE HREF="base address">
![]()
![]()
<BASE TARGET="default target">
The base tag, which is valid only in the HEAD section, defines the base address of an HTML document, which is used to determine the full address of relative URL's that appear in the document. The typical use for this is to move an HTML document to another site without moving all the images and related documents with it: the base URL can be set to the directory where those images and documents remain. The "default target" will become the target for all links unless specified explicitly. The following are the predefined target names:
_blank- Will cause the link to be loaded into a new blank window.
_self- Will cause the link to be loaded into the same window the link was in.
_parent- Will cause the link to be loaded into the parent of this document.
_top- Will cause the link to be loaded into the full body of this window.
| Support: |
<BASEFONT SIZE=number>
The base font tag defines the base that relative FONT changes are based on. (Default is 3.)
| Support: |
<BIG>text</BIG>
The big text tag defines text that should be displayed in a larger font than usual.
| Support: |
<BLINK>text</BLINK>
The blink tag highlights the text by having it blink on and off.
<BLOCKQUOTE>text</BLOCKQUOTE>
![]()
<BQ>text</BQ>
![]()
<BQ CLEAR =attributes>text</BQ>
![]()
<BQ NOWRAP>text</BQ>
The block quote tag defines text that is quoted from elsewhere. Many browsers (including Netscape) display it in an indented block surrounded by blank lines. Other suggestions from the HTML 2.0 spec include displaying the text in italics or starting each line with the Usenet standard quote indicator, >. In HTML 3.0, the CLEAR attribute is used to position a quote after a graphic: it can be LEFT, RIGHT, or ALL and specifies which margin should be clear. The NOWRAP attribute stops the browser from wrapping except at a BR tag.
<BODY>document-body</BODY>
<BODY BACKGROUND="URL">document-body</BODY>
<BODY BGCOLOR="#rrggbb">document-body</BODY>
<BODY BGCOLOR="colorname">document-body</BODY>
<BODY TEXT="#rrggbb">document-body</BODY>
<BODY TEXT="colorname">document-body</BODY>
<BODY LINK="#rrggbb">document-body</BODY>
<BODY LINK="colorname">document-body</BODY>
<BODY ALINK="#rrggbb">document-body</BODY>
<BODY ALINK="colorname">document-body</BODY>
<BODY VLINK="#rrggbb">document-body</BODY>
<BODY VLINK="colorname">document-body</BODY>margin
<BODY LEFTMARGIN=
>document-body</BODY>margin
<BODY TOPMARGIN=
>document-body</BODY>document-body
<BODY BGPROPERTieS="FIXED">
</BODY>
The body tag introduces the body of the document. It should appear after the head section and occupy the remainder of the document.
![]()
The BACKGROUND attribute specifies an image file to use as the background for the page.
![]()
The BGCOLOR, TEXT, LINK, ALINK, and VLINK attributes specify the colours to be used for the background, text, links, active links, and visited links
respectively. (An link is active for the moment the user clicks on it, and changes colour to confirm it has been clicked.) rrggbb is a six digit hexadecimal
number with the first two digits specifying the red value, the middle two the green value, and the last two the blue value. Some sample colour values:
![]()
Colour names can be used wherever colours can be used: in the BGCOLOR, TEXT, LINK, ALINK,and VLINK attributes. Valid colours are: Aqua,
Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple, Red, Silver, Teal,Yellow, and White.
The LEFTMARGIN and TOPMARGIN attributes set the margin at the left and top of the document, in pixels.
The BGPROPERTieS attribute causes the background image (set with the BACKGROUND attribute) to remain fixed as the document scrolls: a
watermark effect.
<B>text</B>
The bold tag defines text that should be shown in boldface. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.
| Support: |
<CAPTION>text</CAPTION>
![]()
![]()
<CAPTION ALIGN=alignment>text</CAPTION>alignment
<CAPTION ALIGN=
>text</CAPTION>vertical-alignment
<CAPTION VALIGN=
>text</CAPTION>
The caption tag defines the caption of a figure or table. It is valid only within FIG or TABLE tags.
The ALIGN attribute arranges for the caption to be at the TOP or BOTTOM of the table or figure.
The ALIGN attribute sets the alignment of the caption within the table or figure border. It can be LEFT, RIGHT, or CENTER.
The VALIGN attribute arranges for the caption to be at the TOP or BOTTOM of the table or figure.
| Support: |
<CENTER>text</CENTER>
The center tag defines text that should be centered.
<CITE>text</CITE>
The citation tag defines text that cites a book or other work -- most browsers will display it in italics. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.
<CODE>text</CODE>
The code tag defines text that should be shown in a fixed width font. It can be nested with other idiomatic or typographic tags but some browsers will
respect only the innermost tag. Many browsers use the same font for the KBD, SAMP, TT and CODE tags. For many lines of fixed width text, with the line
breaks and other whitespace specified by the page author, use the PRE tag.
<!--comment text-->
The comment tag includes the actual comment text. Any instance of --> ends the comment. Whitespace may be included between the -- and the > but not between the <! and the first --.
| Support: |
<CREDIT>text</CREDIT>
The credit tag defines text that credits a figure or quote. It is valid only within FIG or BQ tags.
| Support: |
<DFN>text</DFN>
The definition tag defines text that defines a term -- many browsers will display it in italics, though others will ignore it. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.
<DL>list entries</DL>list entries
<DL COMPACT></DL>term
<DT>
<DD>definition
The definition list tag introduces a definition list or glossary, which is made up of term (DT) and definition (DD) items. The </DT> and </DD> tags are
optional. Typically the definitions are indented under each term, with no blank lines around them. If COMPACT was specified (and the terms are short) the
terms and definitions are on the same line. Do not use multiple DD elements for the same DT -- instead use BR within the DD.
A list heading (LH) may be included before the first definition term.
| Support: |
<DEL>list entries</DEL>
The deleted text tag marks text that has been deleted, for example in a group authoring situation or a legal document.
<DIR>list entries</DIR>
![]()
<DIR COMPACT>list entries</DIR>
The directory list tag introduces a directory list, which is made up of List Item (LI) tags and does not include bullets or numbers before them. The items
should be short so that they can be arranged into columns. For a bulleted list use UL. For a numbered list use OL. For a list without bullets or numbers that
is not arranged into columns use MENU. The COMPACT attribute instructs the browser to reduce the space occupied by the list.
In HTML 3.0, the same effect can be achieved with <UL PLAIN WRAP=HORIZ>. The DIR tag will probably be obsolete some day, so use UL.
| Support: |
<DIV ALIGN=align>
![]()
<DIV CLASS=class>
![]()
<DIV CLASS=classNOWRAP>
The division tag is used to divide a document up into different sections, such as chapters, sections, abstract, and appendix. The CLASS attribute specifies
what section this is. The ALIGN attribute can be one of LEFT, RIGHT, or CENTER. The NOWRAP attribute stops the browser from wrapping except where
<BR>'s are included in the document.
| Support: |
<EMBEDattributes>alternate HTML</EMBED>
The embed element is used to embed a plugin into a document. The OBJECT tag can also be used to embed objects. The attributes of EMBED are:
SRC="URL"- "URL" identifies the location of the object to be embedded.
HEIGHT=number- This specifies the height of the object, according to the UNITS attribute.
WIDTH=number- This specifies the width of the object, according to the UNITS attribute.
UNITS=units- Here units is one of pixels, meaning the width and height are measured in pixels, or en, meaning the width and height are measured in en spaces.
<EM>text</EM>
The emphasized tag defines text that should be emphasized -- most browsers will display it in italics. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.
<
>
&
"
 
®
©
&ensp
&emsp
&endash
&emdash
These escape sequences are used to enter characters such as <, >, &, and " into HTML documents. The mnemonics of the original four sequences
from HTML 2.0 stand for Less Than, Greater Than, AMPersand, and double QUOTe. HTML 3.2 adds NonBreaking SPace, REGistered trademark
and COPYright. HTML 3.0 adds EN SPace, EM SPace, EN DASH, and EM DASH. There are a number of escape sequences available for accented
characters; a full list is provided by the World Wide Web Consortium (W3C.) Use a space or semi-colon(;) after the mnemonic to indicate the end of the
escape sequence; using a space will insert a space between the special character and the next part of the text, while using a semi-colon will not.
<XMP>text</XMP>
The example tag introduces example text. Because of the way this tag handles embedded tags, it should no longer be used. PRE or SAMP are better choices.
| Support: |
<FIGattributes>figure-content</FIG>
See the OBJECT and MAP tags for an alternate to this tag.
The figure element is an improvement over the inline image used in HTML 2.0 for a variety of reasons. The text used to describe the figure for
non-graphical browsers can contain markup tags, and a separate credit and caption will be displayed by both graphical and non-graphical browsers. It
also makes imagemaps much easier to code and independent of the server. At the moment it isn't clear whether the built-in image maps of FIG or the
client-side image maps of IMG with a USEMAP attribute will emerge as the long term alternative to server side image maps. The attributes of FIG are:
SRC="URL"- "URL" identifies the image source, typically a GIF or JPEG file.
ALIGN="alignment"- "alignment" should be one of TOP, MIDDLE, or BOTTOM. This causes the top, middle, or bottom of the image to be aligned with the text on the line containing the IMG tag.
"alignment" should be one of LEFT, RIGHT, TOP, TEXTTOP, MIDDLE, ABSMIDDLE, BASELINE, BOTTOM, or ABSBOTTOM.
HEIGHT=number- This specifies the height of the image, according to the UNITS attribute.
WIDTH=number- This specifies the width of the image, according to the UNITS attribute.
UNITS=units- Here units is one of pixels, meaning the width and height are measured in pixels, or en, meaning the width and height are measured in en spaces. These units are not used for the shape co-ordinates of any anchor tags in the figure.
NOFLOW- Stops text from flowing around the figure.
IMAGEMAP="URL"- Points to a script that handles clicks and drags.
The figure-content contains the following optional elements, in this order:
<OVERLAYSRC="url">
<CAPTION>caption-text</CAPTION>Figure description text, including markup (headers, lists, etc.) to substitute for the image.
<ASHAPE="shape">link-text</A>
<CREDIT>credit-text</CREDIT>
The SHAPE attribute is one of:
This implements a figure with a built-in imagemap, freeing the browser from asking the server how to respond to a click. If the user clicks within the area defined by the anchor's SHAPE attribute, the link is followed. (If the click is outside all the defined shapes, the link identified as default is followed.) The numerical values provided are interpreted as pixels if they are integers, or as fractions of the screen width if they are not integers, with the origin at the top left corner of the figure. There is an intelligent mechanism for dealing with a click in an area that is in more than one shape anchor. If the browser does not display graphics, the figure description text is displayed, and some of it is highlighted as link text.
| Support: |
<FONT SIZE=number>
<FONT COLOR="#RRGGBB">
<FONT COLOR="colorname">
<FONT FACE="facename">
The font tag defines text with a smaller or larger font than usual. The normal font size corresponds to 3; smaller values of number will produce a smaller font, and larger values of number will produce a larger font. If number has a sign (for example +1), the font will be changed relative to the BASEFONT.
The COLOR attribute allows you to change the colour of the text. rrggbb is a six digit hexadecimal number with the first two digits specifying the red value, the middle two the green value, and the last two the blue value. Some sample colour values:
Colour names can also be used in the COLOR attribute. Valid colours are: Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple,
Red, Silver, Teal,Yellow, and White.
The FACE attribute specifies the face to be used, such as Arial or Courier. If multiple names are specified, the first one listed that is installed on the
client machine is used.
| Support: |
<FN ID=anchor-name>text</FN>
The footnote tag defines a footnote, ideally displayed in a pop-up window. The text that refers to this footnote does so with a standard anchor tag using anchor-name.
<FORM ACTION=action base>form tags</FORM>method
<FORM METHOD=>form tags</FORM>media type
<FORM ENCTYPE=>form tags</FORM>
![]()
![]()
<FORM ACTION=action baseTARGET="target window name">form tags</FORM>URL
<FORM SCRIPT=
>form tags</FORM>
The form tag introduces a form, which is made up of INPUT elements, described in the sections that follow. A form may be inside structural HTML tags
and may also contain structural tags. Using tables and other elements a form can take on various shapes and looks.
The ACTION attribute defaults to the document's base address.
The METHOD attribute can be GET or POST. GET specifies a query form, used to get data from a server. POST specifies a form that gives information to the
server and perhaps causes a database to be updated or a message to be sent.
The SCRIPT attribute points to a script to be run. The browser must be able to run the type of script that is specified.
The default media type is 'application/x-www-form-urlencoded', which specifies how the browser puts the user responses on the form together to form a
response URL that is then submitted to the server. For more on the CGI compliant scripts that process the form, check the CGI documentation.
If Target is specified then the output document will be loaded into the window specified by "target window name". The following are the
predefined target names:
_blank- Will cause the link to be loaded into a new blank window.
_self- Will cause the link to be loaded into the same window the link was in.
_parent- Will cause the link to be loaded into the parent of this document.
_top- Will cause the link to be loaded into the full body of this window.
<INPUT TYPE=CHECKBOX NAME=nameVALUE=value>name
<INPUT TYPE=CHECKBOX NAME=VALUE=valueCHECKED>
The checkbox type input tag specifies a boolean choice within the form that contains it. If more than one checkbox appears in the form with the same name the user can select none, one or several of the choices. The NAME attribute is a required field and is used to identify the data for the field. The VALUE attribute specifies the value that is returned if the box is checked. If the CHECKED attribute is specified, the box is initially selected.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
| Support: |
<INPUT TYPE=FILE NAME=nameACCEPT=mime type list>
The file type input tag allows the user to attach one or more files to the form for submission. The NAME attribute is a required field and is used to identify the data for the field. The ACCEPT attribute is a list of mime types that will be accepted. (e.g. "image/*" or "image/gif, image/jpeg").
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
<INPUT TYPE=HIDDEN NAME=nameVALUE=value>
The hidden type input tag specifies a hard coded name-value pair within the form. This field is not displayed to the user. Both NAME and VALUE are required attributes.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
<INPUT TYPE=IMAGE NAME=nameSRC="URL">
![]()
<INPUT TYPE=IMAGE NAME=nameSRC="URL"ALIGN="alignment">
The image type input tag specifies an image to be presented to the user. As soon as the user clicks on the image, the form is submitted with the selected x y coordinates of the spot on the image and the data for the other form fields. The NAME attribute is a required field and is used to identify the data for the field. The SRC and ALIGN attributes are the same as in the Inline Image tag.
The ALIGN attribute is used for image alignment and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
The 3.0 specification added two new attributes: DISABLED, and ERROR. The DISABLED attribute shows the field but will not allow the user to modify
it. The ERROR attribute is used to supply an error message for the field.
<INPUT TYPE=PASSWORD NAME=name>name
<INPUT TYPE=PASSWORD NAME=MAXLENGTH=length>name
<INPUT TYPE=PASSWORD NAME=SIZE=size>name
<INPUT TYPE=PASSWORD NAME=VALUE=value>
The password type input tag specifies a single line text entry field within the form that contains it. The value entered by the user will be obscured as it is entered. The NAME attribute is a required field and is used to identify the data for the field. The MAXLENGTH attribute specifies the number of characters that can be entered into this field. If MAXLENGTH is not specified then there is no limit on the number of characters entered. If MAXLENGTH is longer than SIZE then the text field will scroll appropriately. The SIZE attribute specifies the amount of display space this field should take up. The default for SIZE will vary by browser. The VALUE attribute specifies the initial value of the field.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT..
<INPUT TYPE=RADIO NAME=nameVALUE=value>name
<INPUT TYPE=RADIO NAME=VALUE=valueCHECKED>
The radio button type input tag allows a choice among a number of options. Normally more than one radio button will appear in the form with the same name. The user can then select only one of the of the choices. The NAME attribute is a required field and is used to identify the data for the field. If one of the choices has the CHECKED attribute it will initially be selected. If none of the choices has the CHECKED attribute then the first one defaults as initially selected. The VALUE attribute specifies the value that is returned if the box is checked.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
| Support: |
<INPUT TYPE=RANGE NAME=nameMIN=minMAX=max>name
<INPUT TYPE=RANGE NAME=MIN=min> MAX=maxVALUE=value>
The range type input tag allows the user to enter an number restricted to a set range. The NAME attribute is a required field and is used to identify the data for the field. The MIN and MAX attributes specify the minimum and maximum values that can be entered. If either MIN or MAX is a real number then the user can enter real numbers, otherwise only integers can be entered. The VALUE attribute specifies an initial value and should be in the range specified.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
<INPUT TYPE=RESET>
The reset type input tag specifies a button. When the user clicks the button, all the fields in the form are reset to their initial values.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
| Support: |
<INPUT TYPE=SCRIBBLE NAME=nameSRC=URLVALUE=text>
The scribble type input tag allows the user draw on a predefined image. The NAME attribute is a required field and is used to identify the data for the field.
The SRC attribute specifies the URL of the image. The VALUE attribute specifies a text string that is used as an alternate if images or scribbling are not
supported by the browser.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
<INPUT TYPE=SUBMIT>name
<INPUT TYPE=SUBMIT NAME=>value
<INPUT TYPE=SUBMIT VALUE=>
The submit type input tag specifies a button. When the user clicks the button, the form is submitted. The NAME attribute is used to identify the data for the field. If no NAME attribute is given then this element does not form part of the submitted response. The VALUE attribute specifies the label for the button.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
<INPUT TYPE=TEXT NAME=name>name
<INPUT TYPE=TEXT NAME=MAXLENGTH=length>name
<INPUT TYPE=TEXT NAME=SIZE=size>name
<INPUT TYPE=TEXT NAME=VALUE=value>
The text type input tag specifies a single line text entry field within the form that contains it. The NAME attribute is a required field and is used to identify the data for the field. The MAXLENGTH attribute specifies the number of characters that can be entered into this field. If MAXLENGTH is not specified then there is no limit on the number of characters entered. If MAXLENGTH is longer than SIZE then the text field will scroll appropriately. The SIZE attribute specifies the amount of display space this field should take up. The default for SIZE will vary by browser. The VALUE attribute specifies the initial value of the field.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
<SELECT NAME=name>option entries</SELECT>name
<SELECT NAME=MULTIPLE>option entries</SELECT>name
<SELECT NAME=SIZE=size>option entries</SELECT>name
<SELECT NAME=
SRC=URLWIDTH=widthHEIGHT=heightUNITS=units>option entries</SELECT>content
<OPTION>content
<OPTION SELECTED>value
<OPTION VALUE=>contentshape
<OPTION SHAPE=
>
The select tag specifies a multiple line selection box field within the form that contains it. The user can select one or more lines if the attribute MULTIPLE is
specified. The NAME attribute is a required field and is used to identify the data for the field. The SIZE attribute specifies the number of lines of selections
that are to be displayed.
The SELECTED attribute of the option tag specifies that the option is to be initially selected. The VALUE attribute specifies the value to be returned if this
option is selected. If the VALUE attribute is not specified the content of the option is used.
The select tag's SRC, WIDTH, HEIGHT, and UNITS attributes and the option tag's SHAPE attribute define an image map. These attributes are the same
as the ones described in the Figure tag.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
<TEXTAREA NAME=nameCOLS=# columnsROWS=# rows>content</TEXTAREA>
The text area tag specifies a multiple line text area field within the form that contains it. The NAME attribute is a required field and is used to identify the data for the field. The COLS attribute specifies the width in characters of the text area. The ROWS attribute specifies the number of lines the text area contains. The content is used as an initial value for the field. The field can be scrolled beyond the COLS and ROWS size to allow for larger amounts of text to be entered.
The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN. The DISABLED attribute shows the field but will not allow the user to
modify it. The ERROR attribute is used to supply an error message for the field. The ALIGN attribute is used to position the field and can be one of TOP,
BOTTOM, MIDDLE, LEFT or RIGHT.
| Support: |
<FRAMEattributes>
The frame tag appears inside the FRAMESET tag and specifies one frame in the frameset. The attributes are:
SRC="URL"- The URL of the source document to be displayed in this frame. If the frame does not specify a source it will be displayed as blank space.
NAME="window name"- Here "window name" is the name associated with this frame. It can be used by the TARGET attribute in the A, BASE, AREA, and FORM tags to target this frame.
MARGINWIDTH=number- Here number is the left and right margin thickness in pixels.
MARGINHEIGHT=number- Here number is the top and bottom margin thickness in pixels.
SCROLLING=type- Here type is one of yes, no or auto. It specifies that the frame is to have a scroll bar, auto indicates the browser should decide. By default auto is set.
NORESIZE- Stops the user from resizing the frame..
FRAMEBORDER=yes|no- Specifies if the border should be displayed.
FRAMESPACING=number- Here number is the spacing between frames in pixels.
| Support: |
<FRAMESETattributes>frame tags</FRAMESET>
The FRAMESET tag replaces the BODY tag in a document and is used to split the documents window into a set of smaller frames. FRAMESET tags can be
nested to create more complicated frame layouts. NOFRAME tags can also be placed in a frameset. The attributes are:
ROWS="row heights"- Here "row heights" specifies a list of values for the rows, each one can be specified as a percentage, a pixel value or as "*". The frameset will be split vertically into frames based on these values. Rows with "*"'s in them will have any remaining space split between them.
COLS="column widths"- Here "column widths" specifies a list of values for the columns. The width of each column can be specified as a percentage, a pixel value or as "*". The frameset will be split into frames based on these values. Columns with a width of "*" will split the space that is not assigned to other columns.
<HEAD>head-section</HEAD>
The head tag introduces text that describes an HTML document. Most documents have only a TITLE tag in the head section.
<H1>text</H1>
<H1 ALIGN=alignment>text</H1>"URL"
<H1 SRC=
>text</H1>"entity-name"
<H1 DINGBAT=
>text</H1>text
<H1 NOWRAP>
</H1>clear
<H1 CLEAR=
>text</H1>
The heading 1 tag defines a level 1 heading. It is typically shown in a very large bold font with several blank lines around it, and is used by automatic
indexers to describe a page.
The alignment attribute can be LEFT, RIGHT, or CENTER -- it defines the placement of the header on the screen. The SRC attribute identifies a graphic
image to be embedded before the header text, while the DINGBAT attribute identifies an iconic entity to be embedded there. The clear attribute is used to
position a header after a graphic: it can be LEFT, RIGHT, or ALL and specifies which margin should be clear. The NOWRAP attribute prevents the browser
from breaking long header lines; use a BR tag to break those lines yourself.
<H2>text</H2>
<H2 ALIGN=alignment>text</H2>"URL"
<H2 SRC=
>text</H2>"entity-name"
<H2 DINGBAT=
>text</H2>text
<H2 NOWRAP>
</H2>clear
<H2 CLEAR=
>text</H2>
The heading 2 tag defines a level 2 heading. It is typically shown in a large bold font with several blank lines around it.
The alignment attribute can be LEFT, RIGHT, or CENTER -- it defines the placement of the header on the screen. The SRC attribute identifies a graphic
image to be embedded before the header text, while the DINGBAT attribute identifies an iconic entity to be embedded there. The clear attribute is used to
position a header after a graphic: it can be LEFT, RIGHT, or ALL and specifies which margin should be clear. The NOWRAP attribute prevents the browser
from breaking long header lines; use a BR tag to break those lines yourself.
<H3>text</H3>
![]()
<H3 ALIGN=alignment>text</H3>"URL"
<H3 SRC=
>text</H3>"entity-name"
<H3 DINGBAT=
>text</H3>text
<H3 NOWRAP>
</H3>clear
<H3 CLEAR=
>text</H3>
The heading 3 tag defines a level 3 heading. It is typically shown in a large italic font, slightly indented, with blank lines around it.
The alignment attribute can be LEFT, RIGHT, or CENTER -- it defines the placement of the header on the screen. The SRC attribute identifies a graphic
image to be embedded before the header text, while the DINGBAT attribute identifies an iconic entity to be embedded there. The clear attribute is used to
position a header after a graphic: it can be LEFT, RIGHT, or ALL and specifies which margin should be clear. The NOWRAP attribute prevents the browser
from breaking long header lines; use a BR tag to break those lines yourself.
<H4>text</H4>
![]()
<H4 ALIGN=alignment>text</H4>"URL"
<H4 SRC=
>text</H4>"entity-name"
<H4 DINGBAT=
>text</H4>text
<H4 NOWRAP>
</H4>clear
<H4 CLEAR=
>text</H4>
The heading 4 tag defines a level 4 heading. It is typically shown in a bold font, indented more than an level 3 heading, with blank lines around it.
The alignment attribute can be LEFT, RIGHT, or CENTER -- it defines the placement of the header on the screen. The SRC attribute identifies a graphic
image to be embedded before the header text, while the DINGBAT attribute identifies an iconic entity to be embedded there. The clear attribute is used to
position a header after a graphic: it can be LEFT, RIGHT, or ALL and specifies which margin should be clear. The NOWRAP attribute prevents the browser
from breaking long header lines; use a BR tag to break those lines yourself.
<H5>text</H5>
![]()
<H5 ALIGN=alignment>text</H5>"URL"
<H5 SRC=
>text</H5>"entity-name"
<H5 DINGBAT=
>text</H5>text
<H5 NOWRAP>
</H5>clear
<H5 CLEAR=
>text</H5>
The heading 5 tag defines a level 5 heading. It is typically shown in an italic font, indented the same as a level 4 heading, with a blank line above it.
The alignment attribute can be LEFT, RIGHT, or CENTER -- it defines the placement of the header on the screen. The SRC attribute identifies a graphic
image to be embedded before the header text, while the DINGBAT attribute identifies an iconic entity to be embedded there. The clear attribute is used to
position a header after a graphic: it can be LEFT, RIGHT, or ALL and specifies which margin should be clear. The NOWRAP attribute prevents the browser
from breaking long header lines; use a BR tag to break those lines yourself.
<H6>text</H6>
![]()
<H6 ALIGN=alignment>text</H6>"URL"
<H6 SRC=
>text</H6>"entity-name"
<H6 DINGBAT=
>text</H6>text
<H6 NOWRAP>
</H6>clear
<H6 CLEAR=
>text</H6>
The heading 6 tag defines a level 6 heading. It is typically shown in a normal font, indented more than a level 5 heading, with a blank line above it.
The alignment attribute can be LEFT, RIGHT, or CENTER -- it defines the placement of the header on the screen. The SRC attribute identifies a graphic
image to be embedded before the header text, while the DINGBAT attribute identifies an iconic entity to be embedded there. The clear attribute is used to
position a header after a graphic: it can be LEFT, RIGHT, or ALL and specifies which margin should be clear. The NOWRAP attribute prevents the browser
from breaking long header lines; use a BR tag to break those lines yourself.
<HR>
![]()
<HR SRC="URL">
![]()
<HR SIZE=number>
![]()
<HR WIDTH=number%>
![]()
<HR ALIGN=alignment%>
![]()
<HR NOSHADE>
![]()
<HR COLOR="colorname">
The horizontal rule tag causes a horizontal line to be drawn across the screen. There is no </HR> tag.
The attributes allow you to specify the thickness of the line (in pixels) with the SIZE attribute. The WIDTH attribute governs what percentage of the screen width is occupied by the rule. The ALIGN attribute aligns a rule that is smaller than the screen: alignment can be LEFT, RIGHT, or CENTER. The NOSHADE attribute prevents the browser from using any shading or three dimensional effects.
The COLOR attribute allows you to change the colour of the text. rrggbb is a six digit hexadecimal number with the first two digits specifying the red
value, the middle two the green value, and the last two the blue value. Some sample colour values:
Colour names can also be used in the COLOR attribute. Valid colours are: Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple, Red, Silver, Teal,Yellow, and White
The SRC attribute specifies an image file to be used for the rule.
| Support: |
<TAB INDENT=number>tab id
<TAB TO=ALIGN=align>character
<TAB DP=>
The horizontal tab tag is used to set or jump to a horizontal tab. The INDENT attribute specifies the amount in en spaces to set this indent to. The ALIGN attribute can be one of LEFT, RIGHT, CENTER, or DECIMAL and will position the following text to the tab accordingly. The DP sets the tab to the position that the next character is found The default character is ".".
<HTML>entire-document</HTML>
The HTML tag defines an HTML document. The <HTML> tag should be the first in the entire document, and the </HTML> tag should be the last.
<IMGattributes>
The inline image tag displays an image referred to by a URL. It must contain at least an SRC attribute. The attributes are:
ALIGN="alignment"- Here "alignment" should be one of TOP, MIDDLE, or BOTTOM. This causes the top, middle, or bottom of the image to be aligned with the text on the line containing the IMG tag.
"alignment" can also be LEFT or RIGHT, this moves the image to the left or right of the screen and allows text to flow around it.
"alignment" should be one of LEFT, RIGHT, TOP, TEXTTOP, MIDDLE, ABSMIDDLE, BASELINE, BOTTOM, or ABSBOTTOM.
ALT="text"- Here "text" is the text to be displayed by a browser that does not display images, such as Lynx, or to be used when image display is suppressed.
![]()
BORDER=number- Here number is the border thickness in pixels. (Do not use BORDER=0 for images that are links.)
![]()
CONTROLS- If present, and an AVI resource is being played, displays controls under the resource.
![]()
DYNSRC="URL"- Specifies an AVI resource to be played, or a VRML world. Always include a still image as well with the
SRCattribute, for use by browsers that do not display inline video or VRML.
![]()
HEIGHT=number- This specifies the height of the image, according to the UNITS attribute.
![]()
HSPACE=number- Here number is the space, in pixels, to leave to the left and right of the image.
ISMAP- This attribute indicates that this image is a server side image map.
![]()
LOOP=n- The optional
LOOPattribute will cause the resource to be played n times.LOOP="INFINITE"will cause the resource to be played continuously as long as the page is open.
![]()
LOWSRC- Specifies an image to be displayed while the SRC image is being loaded. This alternate image should take much less time to download then the SRC image: it should be lower resolution, black and white, etc.
![]()
START="start option"- The
STARTattribute specifies when the browser should start to play the resource specified with theDYNSRCattribute.START=FILEOPENinstructs the browser to play the resource only when the file is opened.START=MOUSEOVERinstructs the browser to play the resource each time the user moves the mouse cursor over it.START=FILEOPEN,MOUSEOVERdoes both.
SRC="URL"- Here "URL" identifies the image source, typically a GIF or JPEG file.
![]()
UNITS=units- Here units is one of pixels, meaning the width and height are measured in pixels, or en, meaning the width and height are measured in en spaces.
![]()
USEMAP="url"- This attribute overrides the
ISMAPattribute, if present, and if the browser supports client-side image maps. It uses theMAPelement found at url to translate clicks.
![]()
WIDTH=number- This specifies the width of the image, according to the UNITS attribute.
![]()
VSPACE=number- Here number is the space, in pixels, to leave above and below the image.
| Support: |
<INS>text</INS>
The inserted text tag marks text that has been inserted, for example in a group authoring situation or a legal document.
<ISINDEX>URL
<ISINDEX HREF=
>
![]()
<ISINDEX PROMPT=prompt>
The isindex tag, which is only valid in a HEAD section, declares that the current HTML document is a searchable index. The user will be prompted for keywords to search for. A new URL will be formed by taking the base address of the current document and adding a '?' character to it, followed by the keywords separated by '+' characters. The URL attribute overrides the base address. The prompt attribute changes the prompt from the default one supplied by the browser.
<I>text</I>
The italic tag defines text that should be shown in italics. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.
| Support: |
<APPLETattributes>applet-content</APPLET>
The Java applet tag runs a Java applet referred to by a URL. applet-content consists of optional PARAM tags, ordinary text and markup to be displayed by browsers that cannot run Java applets, and a TEXTFLOW tag if no ordinary text and markup is included. The attributes of the APPLET tag are:
CODEBASE="base"- What "base" should be used when resolving source relative URLs.
CODE="code"- The URL of the applet to be run.
NAME="applet name"- The name of the applet.
ALIGN="alignment"- Here "alignment" should be one of LEFT, RIGHT, TOP, MIDDLE, or BOTTOM.
ALT="text"- Here "text" is the text to be displayed by a browser that does not display images, such as Lynx, or to be used when image display is suppressed.
HEIGHT=number- The height of the applet display area in pixels.
WIDTH=number- The width of the applet display area in pixels.
HSPACE=number- The space, in pixels, to leave to the left and right of the applet display area.
VSPACE=number- The space, in pixels, to leave above and below the applet display area.
| Support: |
<TEXTFLOW>
If an APPLET element has no ordinary text and markup in its applet-content, and contains only PARAM tags, comments, and whitespace, you should add a TEXTFLOW tag. This tag will be ignored by Web browsers but will keep SGML parsers happy.
<KBD>text</KBD>
The keyboard tag defines text that should be shown in a fixed width font. It can be nested with other idiomatic or typographic tags but some browsers will
respect only the innermost tag. Many browsers use the same font for the KBD, SAMP, TT and CODE tags. For many lines of fixed width text, with the line
breaks and other whitespace specified by the page author, use the PRE tag.
| Support: |
<LANG>text</LANG>
The language tag is used to alter the language used for a block of text.
<BR>
<BR CLEAR>
<BR CLEAR="type">
The line break tag breaks the current line of text. It's not necessary inside a PRE element. There is no </BR> tag. The CLEAR attribute type can be LEFT to break until there is nothing to the left, RIGHT for the right side, all for break until both sides are clear, and NONE for a normal break.
<LINK REL=relationshipHREF="URL">relationship
<LINK REV=HREF="URL">
<LINK REV=relationshipHREF="URL"TITLE="title">
The link tag appears within the HEAD section of a document. It has all the same attributes as the anchor tag. The main 3 attributes used are REL, REV and HREF. The REL attribute specifies the relationship between this document and the link. The REV attribute specifies a reverse relationship while the HREF attribute specifies the URL of the link. The following is a list of some of the current relationships. The TITLE attribute specifies an advisory title string.
Browsers use this tag to build custom toolbars for the document.
REL=Home REL=ToC REL=Index REL=Glossary REL=Copyright REL=Up REL=Next REL=Previous REL=Help REL=Bookmark TITLE attribute is used to label the bookmark. REL=Banner REL=StyleSheet | Support: |
<LH>text</LH>
The list heading tag defines the heading for an ordered, unordered, or definition list. Other tags may be embedded in a list heading. It must come before any List Item (LI) or Definition Term (DT) tags in the list.
<LI>text</LI>URL
<LI SRC=
>text</LI>"entity-name"
<LI DINGBAT=
>text</LI>number
<LI SKIP=
>text</LI>
![]()
<LI TYPE=type>text</LI>
![]()
<LI VALUE=number>text</LI>
The list item tag defines one entry in an ordered, unordered, menu, or directory list. Other tags may be embedded in a list item.
The SRC attribute uses the image specified by the URL as the bullet for this item. The DINGBAT attribute identifies an iconic entity for the bullet. The
SKIP attribute is used with ordered lists to skip forward in the count.
The TYPE attribute changes the bullet or numbering style for this item. type has the same values as it would in the OL or UL tag. The VALUE attribute
resets the sequence number to number.
<LISTING>text</LISTING>
The listing tag introduces a program listing. Because of the way this tag handles embedded tags, it should no longer be used. PRE is a better choice.
| Support: |
<MAP NAME="name">area tags</MAP>
The map tag defines a client side image map It gives a name to a collection of AREA tags that are superimposed over an inline image to connect user clicks
with URLs.
| Support: |
<MARQUEE>text</MARQUEE>
<MARQUEE ALIGN="align">text</MARQUEE>
<MARQUEE BEHAVIOR="behavior">text</MARQUEE>
<MARQUEE BGCOLOR="#rrggbb">text</MARQUEE>
<MARQUEE BGCOLOR="colorname">text</MARQUEE>
<MARQUEE DIRECTION="direction">text</MARQUEE>
<MARQUEE HEIGHT=n>text</MARQUEE>
<MARQUEE HEIGHT=n%>text</MARQUEE>
<MARQUEE HSPACE=n>text</MARQUEE>
<MARQUEE LOOP=n>text</MARQUEE>
<MARQUEE SCROLLAMOUNT=n>text</MARQUEE>
<MARQUEE SCROLLDELAY=n>text</MARQUEE>
<MARQUEE WIDTH=n>text</MARQUEE>
<MARQUEE VSPACE=n>text</MARQUEE>
<MARQUEE WIDTH=n%>text</MARQUEE>
The marquee tag defines a moving piece of text, like a movie marquee.
The ALIGN attribute works like the ALIGN attribute in the IMG tag, setting the location of the surrounding text. "align" can be TOP, BOTTOM, or MIDDLE.
The BEHAVIOR attribute defines the way the text moves. SCROLL means that the text slides into the marquee box and out again, then repeats. SLIDE
means that the text slides into the marquee box, stops when it is all in, then repeats. ALTERNATE means that the text bounces back and forth within the
marquee box.
The BGCOLOR attribute specifies the colour to be used for the background. rrggbb is a six digit hexadecimal number with the first two digits specifying the red value, the middle two the green value, and the last two the blue value. Some sample colour values:
Colour names can be used for the BGCOLOR attribute. Valid colours are: Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple,
Red, Silver, Teal,Yellow, and White.
The DIRECTION attribute is LEFT or RIGHT and specifies the direction in which the text should move.
The HEIGHT and WIDTH attributes size the marquee box. If n is an absolute number, it is taken to mean pixels; if n is followed by a % sign it is taken to
mean a percentage of the width or height (as appropriate) of the screen.
The HSPACE and VSPACE attributes specify a margin to the left and right, or above and below, the marquee box, in pixels.
The LOOP attribute will cause the marquee to scroll n times. LOOP="INFINITE" will cause the marquee to scroll as long as the page is open.
The SCROLLAMOUNT attribute specifies, the amount, in pixels, to move the scrolling text by each time it is drawn. The SCROLLDELAY attribute specifies the
delay, in milliseconds, between drawings.
| Support: |
<MATH>math-content</M