(includes MS Internet Explorer and Netscape extensions)
| ! | A
| B | C | D
| E | F | H
| I | K | L
| M | N | O
| P | S | T
| U | V | W
| X | bottom |
===== ! =====
- <!-- ..... -->
Specifies a comment. Anything between these tags will be ignored by the browser.
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 //EN">
This is the necessary first element of any HTML 3.2 compliant document.
===== A =====
- <A attributes="...">.....< /A>
When used with the HREF attribute, the enclosed text and/or graphic becomes a link to
another document or anchor. When used with the NAME attribute, the enclosed text and/or
graphic becomes an anchor. Below are the attributes for it:
- HREF="..."
Specifies the URL of the document to be linked to.
- NAME="..."
Specifies the name of the anchor you are creating.
- onClick="..."
Specifies a script to be activated when the mouse is clicked.
- onMouseOver="..."
Specifies a script to be activated when the mouse is moved over the link.
- REL="..."
Specifies a relative relationship.
- REV="..."
Specifies the reverse relationship.
- TARGET="..."
Specifies which window the link will be loaded into. The target can be a name of a frame
that you specified in the FRAME tag or one of the following values:
- "_blank"
Loads the link into a new blank window.
- "_parent"
Loads the link into the immediate parent of the document the link is in.
- "_self"
Loads the link into the same window (default).
- "_top"
Loads the link into the full body of the current window.
- TITLE="..."
Specifies the title that appears when the link is selected, but not yet clicked.
- <ADDRESS>.....< /ADDRESS>
Encloses the signature file of the author of the page. Text is displayed in italics.
- <APPLET attributes> parameters ..... < /APPLET>
Inserts a Java applet in the HTML document. Any text placed between the opening and
closing APPLET tags will be displayed by browsers that do not support JAVA. The
applet-specific parameters that are passed as arguments to the program are specified as
tags within the APPLET tag as follows: <PARAM NAME="..."
VALUE="..." >
Below are the attributes for it:
- ALIGN="..."
Specifies the alignment of the text around the object with respect to the object. Possible
values are LEFT, RIGHT,
TOP, MIDDLE
and BOTTOM.
- ALT="..."
Specifies the text to be displayed by browsers that recognize the tag but cannot show
applets.
- CODE="..."
Specifies the name of the Java applet.
- CODEBASE="..."
Specifies the base address of the applet (the directory in which the applet is located).
- DOWNLOAD="n"
Specifies an order in which images are downloaded.
- HEIGHT="..."
Specifies the height of the applet in number of pixels or percentage of screen.
- HSPACE="n"
Specifies the left and right margins of the outside of the applet in pixels.
- NAME="..."
Specifies the name of the applet instance (in case there are more than one of the same
applet on the page).
- VSPACE="n"
Specifies the top and bottom margin for the outside of the applet.
- WIDTH="..."
Specifies the width of the applet either in pixel or percentage of the screen.
- <AREA attributes>.....< /AREA>
Specifies the shape and size of a hot spot to be used in the definition of a client-side
image map. Used inside the MAP tag. Below are the attributes for it:
- COORDS="..."
Specifies the coordinates that define the hot spot's position. Two pairs of coordinates
are needed for RECT, three or more pairs for POLY, and one pair of coordinates and a
radius for CIRC.
- HREF="..."
Specifies the URL that this hot spot points to.
- NOHREF
Indicates that this hot spot points to nothing.
- SHAPE="..."
Specifies the shape of the hot spot. Possible values are RECT,
RECTANGLE, CIRC,
CIRCLE, POLY
and POLYGON.
- TARGET="..."
Specifies which window the link will be loaded into. The target can be a name of a frame
that you specified in the FRAME tag or one of the following values:
- "_blank"
Loads the link into a new blank window.
- "_parent"
Loads the link into the immediate parent of the document the link is in.
- "_self"
Loads the link into the same window (default).
- "_top"
Loads the link into the full body of the current window.
===== B =====
- <B>.....< /B>
Boldfaces the enclosed text.
- <BASE href="http://url.address/file.htm"> (between the
<head>.....</head>)
Specifies the base URL of the document. This is used when dereferencing relative URLs in
the page.
<BASE href="http://url.address/file.htm" TARGET="...">
(between the <head>.....</head>)
Also specifies the base target frame that all links will default to. See the LINK tag for
possible values used in TARGET.
- <BASEFONT attributes>
Sets the default font properties for the entire page. Below are the attributes for it:
- SIZE="..."
Sets the size of the font to any number between 1 and 7
with 3 being default. Relative sizes also work, e.g. SIZE=+2.
- COLOR="..."
Specifies the default font color for the page.
- NAME="..."
Specifies the typeface of the default font.
- <BIG>.....< /BIG>
Makes the enclosed text one size larger.
- <BLINK>.....< /BLINK>
Makes the enclosed text blink continually.
- <BLOCKQUOTE>.....< /BLOCKQUOTE>
Encloses a long quote. Both the left and right margins are indented.
- <BODY attributes>.....< /BODY>
Encloses the main body of the document. Below are the attributes for it:
- ALINK="..."
Specifies the color of the activated links in the page.
- BACKGROUND="..."
Specifies an image to be tiled as background.
- BGCOLOR="..."
Specifies the background color.
note: Color is always expressed as RGB (Red Green Blue), where each color
has a value between 0 and 255 expressed in hex notation. For example,
BGCOLOR="#FFFF00" sets the background color to yellow.
- BGPROPERTIES="FIXED" (IE)
Fixes the background image so that it doesn't scroll.
- LEFTMARGIN="n" (IE)
Specifies the left margin for the entire page.
- LINK="..."
Specifies the color of the links in the page.
- TEXT="..."
Specifies the color of the text in the page.
- TOPMARGIN="n" (IE)
Specifies the top margin for the entire page.
- VLINK="..."
Specifies the color of the followed links in the page.
- <BGSOUND attributes> (IE)
Specifies a background sound to be played whenever the page is loaded. This
"soundtrack" can be either a sample (.wav or .au) or midi (.mid) file. Below are
the attributes for it:
- LOOP="n"
Specifies the number of times the sound will loop. Values of "-1" or
"INFINITE" make the sound loop indefinitely.
- SRC="..."
Specifies the URL of the sound to be played.
- <BR attributes>
Inserts a line break. Below are the attributes for it:
- CLEAR="..."
Causes the text to stop flowing around any images. Possible values are RIGHT, LEFT
and ALL.
===== C =====
- <CAPTION attributes>.....< /CAPTION>
Specifies the caption of the table. Below are the attributes for it:
- ALIGN="..."
Specifies the position of the caption. Possible values are LEFT,
RIGHT, BOTTOM
and TOP.
- <CENTER>.....< /CENTER>
Centers the enclosed elements. This tag will center everything including images, text,
tables, forms, etc.
- <CITE>.....< /CITE>
Encloses a citation such as the title of a book or paper.
- <CODE>.....< /CODE>
Encloses a sample of code. The text is rendered in small font.
- <COL attributes> (IE)
Used with the COLGROUP tag, this specifies the properties of one column. This tag
overrides any attributes specified in the COLGROUP tag that comes right before it. Below
are the attributes for it:
- ALIGN="..."
Specifies the position of the text within the cells of the Column. Possible values are CENTER, LEFT,
RIGHT, BOTTOM
and TOP.
- SPAN="..."
Specifies the number of columns for which these attributes will apply.
- <COLGROUP attribute> (IE)
Specifies the properties of one or more columns. This tag generally goes right after the
opening TABLE tag. Below are the attributes for it:
- ALIGN="..."
Specifies the position of the text within the cells of the Columns. Possible values are CENTER, LEFT,
RIGHT, BOTTOM
and TOP.
- SPAN="..."
Specifies the number of columns for which these attributes will apply.
- <COMMENT>.....< /COMMENT>
Encloses a comment. Text inside the tags is ignored unless it contains HTML code.
===== D =====
- <DFN>.....< /DFN>
Encloses a definition. Text inside the tags is formatted to look like a definition.
- <DIR>.....< /DIR>
Puts the enclosed items marked with <LI>, in a directory listing.
- <DIV attributes>.....< /DIV>
Specifies the alignment of the enclosed elements. Can be used to divide a document into
sections that are aligned differently. In future browsers, more attributes will probably
be supported. Below are the attributes for it:
- ALIGN="..."
Sets the alignment of the division. Possible values are CENTER,
RIGHT and LEFT.
- <DL>.....< /DL>
Creates a definition list. Within this container, <DT> specifies a definition term
and <DD> specifies the definition.
===== E =====
- <EM>.....< /EM>
Emphasis on the enclosed text (italics).
- <EMBED attributes>.....< /EMBED>
Inserts an embedded multimedia object, such as a sound file or video, into the page. In
the future, when the OBJECT tag becomes finalized and well supported, this tag will be
obsolete. Below are the attributes for it:
- AUTOSTART="..."
Specifies whether the file starts playing right away or not. Possible values are TRUE and FALSE.
- HEIGHT="..."
Specifies the height of the display in number of pixels or percentage of screen.
- LOOP="..."
Specifies whether the file repeats or not. Possible values are TRUE
and FALSE.
- NAME="..."
Specifies the name of the object, in case there are other objects that refer to this one.
- SRC="..."
Specifies the location of the object file.
- WIDTH="..."
Specifies the width of the display either in pixel or percentage of the screen.
===== F =====
- <FONT attributes>.....< /FONT>
Sets the font properties for the enclosed text. Below are the attributes for it:
- COLOR="..."
Specifies the color of the font.
- FACE="..."
Specifies the face of the font. A list can be defined (separated by commas) and the
browser will use the first one available on that computer.
- SIZE="..."
Sets the size of the font to any number between 1 and 7
with 3 being default. relative sizes also work, e.g. SIZE=+2
- <FORM attributes>.....< /FORM>
Specifies a form. Forms can be used to send user input to the server in the form of
NAME/VALUE pairs. Below are the attributes for it:
- ACTION="..."
Specifies the address to be used in carrying out the action of the form. Usually the
address of the CGI file. You can also specify a mailto address to have the contents of the
form emailed to you instead of getting passed to the server (in future browsers).
- ENCTYPE="..."
For future browser. Specifies the type of encoding to use on the form information.
- METHOD="..."
Specifies the method used by the server in sending the form information. Possible values
are POST and GET.
When GET is used, the server simply appends the arguments to the end of the action
address. With POST, the information is sent as an HTTP post transaction.
- TARGET="..."
Specifies which window the result of the form will be loaded into. The target can be a
name of a frame that you specified in the FRAME tag or one of the following values:
- "_blank"
Loads the result into a new blank window.
- "_parent"
Loads the result into the immediate parent of the document the form is in.
- "_self"
Loads the result into the same window (default).
- "_top"
Loads the result into the full body of the current window.
- <FRAME attributes>
Defines a single frame within a frameset. Below are the attributes for it:
- BORDER="..." (N)
Specifies the width (in pixels) of the border drawn around the frame.
- FRAMEBORDER="..." (IE)
Specifies whether or not a 3D border is displayed around the frame. Possible values are 0 (no border) or 1
(default).
- MARGINHEIGHT="..."
Specifies the top and bottom margins of the frame in pixels.
- MARGINWIDTH="..."
Specifies the right and left margins of the frame in pixels.
- NAME="..."
Defines a target name for the frame.
- NORESIZE
Prevents the frame from being resized by the user.
- SCROLLING="..."
Determines whether or not scroll bars are displayed along the frame. Possible values are YES, NO
and AUTO.
- SRC="..."
Specifies the source file for the frame.
- <FRAMESET attributes>.....< /FRAMESET>
Defines a set of frames that will make up the page. The FRAME and NOFRAMES tags go inside
this. The FRAMESET tag is used instead of the BODY tag. You can, however, include a BODY
tag inside the NOFRAMES tags for browsers that do not support frames. Below are the
attributes for it:
- BORDER="..." (N)
Specifies the width (in pixels) of the border drawn around the frames.
- COLS="..."
Creates the frames as columns and specifies the width of each column. Width of the columns
can be set using percentages, pixels or relative size (*). For example, if you want your
frames to be 3 equally sized columns, you would use: COLS=33%,33%,*
- FRAMEBORDER="..." (IE)
Specifies whether or not a 3D border is displayed around the frames. Possible values are 0 (no border) or 1
(default).
- FRAMESPACING="..."
Specifies, in pixels, the amount of space between the frames.
- ROWS="..."
Creates the frames as rows and specifies the width of each row. Width of the rows can be
set using percentages, pixels, or relative size (*). For example, if you want a small
frame at the top of your page and one large frame below that, you might use: ROWS=15%,*
- SCROLLING="..."
Determines whether or not scroll bars are displayed on all the frames. Possible values are
YES, NO
and AUTO.
===== H =====
- <Hn>...< /Hn>
Makes the enclosed text a heading of various sizes where n is any number ranging from 1 to 6, and 1 creates the biggest heading
while 6 creates the smallest.
- <HEAD>.....< /HEAD>
Encloses the head of the document.
- <HTML>.....< /HTML>
Encloses the entire document.
- <HR attributes>
Inserts a horizontal line. Below are the attributes for it:
- ALIGN="..."
Specifies the alignment of the line. Possible values are RIGHT,
LEFT and CENTER.
- COLOR="..." (IE)
Specifies the color of the line.
- NOSHADE
The line is drawn solid.
- SIZE="..."
Specifies the thickness of the line.
- WIDTH="..."
Specifies the length of the line as a percentage of the screen. e.g. WIDTH=90%
===== I =====
- <I>.....< /I>
The enclosed text is italics.
- <IFRAME attribute1="..." attribute2="..."><
/IFRAME> (IE)
Defines a floating frame. Does not need to be placed within a FRAMESET. Below are the
attributes for it:
- ALIGN="..."
Specifies the alignment of the floating frame and surrounding text. Possible values are TOP, MIDDLE,
BOTTOM, LEFT
and RIGHT.
- FRAMEBORDER="..."
Specifies whether or not a 3D border is displayed around the frame. Possible values are 0 (no border) or 1
(default).
- HEIGHT="..."
Specifies the height of the floating frame.
- MARGINHEIGHT="..."
Specifies the top and bottom margins of the floating frame in pixels.
- MARGINWIDTH="..."
Specifies the right and left margins of the floating frame in pixels.
- NAME="..."
Defines a target name for the floating frame.
- NORESIZE
Prevents the frame from being resized by the user.
- SCROLLING="..."
Determines whether or not scroll bars are displayed along the frame. Possible values are YES and NO.
- SRC="..."
Specifies the source file for the floating frame.
- WIDTH="..."
Specifies the width of the floating frame.
- <IMG attributes>
Places an inline image into the document.. Below are the attributes for it:
- ALIGN="..."
Specifies the alignment of the image. Values are:
- RIGHT and LEFT
Aligns the image to the specified side of the page and all text is wrapped around the
image.
- TOP, MIDDLE, BOTTOM, TEXTTOP, ABSMIDDLE,
BASELINE and ABSBOTTOM
Specifies the vertical alignment of the image with other items on the same line.
- ALT="..."
Specifies a text string to be displayed on browsers that do not support inline images.
- BORDER="..."
Specifies the width of the border drawn around the image. If BORDER is set to
"0", there will be no border even around pictures that are links.
- CONTROLS (IE)
Adds a set of controls under the video clip.
- DYNSRC="..." (IE)
Specifies the URL of a video clip or VRML world. An image can also be specified first
using SRC= to cover for browsers that do not support videos.
- HEIGHT="..."
Specifies the height of the image. If the height is not the actual height, the image is
scaled to fit.
- HSPACE="..."
Specifies the space left between the edge of the image and the items to the left or right
of it.
- ISMAP
Tells the browser that the image is a server-side clickable image map.
- LOOP="n" (IE)
For video clips, specifies the number of times to loop the clip. A value of "-1"
or "INFINITE" makes it loop indefinitely.
- LOWSRC="..."
Specifies the URL of an image to be loaded first, before the image specified in SRC is
loaded. LOWSRC usually reefers to a smaller image.
- SRC="..."
Specifies the URL of the image.
- START="..." (IE)
Specifies when the video clip should start playing. Possible values are FILEOPEN (default), MOUSEOVER
or both.
- USEMAP="#map1"
Tells the browser that the image is a client-side clickable image map defined under the
name "map1".
- VSPACE="..."
Specifies the space left between the edge of the image and the items above or below it.
- WIDTH="..."
Specifies the width of the image. If the width is not the actual width, the image is
scaled to fit.
- <INPUT attributes>
Specifies a control or input area for a form, from which a NAME/VALUE pair will be
returned to the server. Below are the attributes for it:
- ALIGN="..."
If the TYPE is IMAGE, then this specifies the alignment of the surrounding text with the
image. Possible values are TOP, MIDDLE, BOTTOM,
LEFT and RIGHT.
- CHECKED
Use this attribute in a RADIO or CHECKBOX type, and it will be pre-selected when the form
loads.
- MAXLENGTH="..."
Specifies the maximum number of characters that can be entered in a text input.
- NAME="..."
Specifies the name of the control or input area (part of the NAME/VALUE pair).
- SIZE="..."
Specifies the size of the text entry area that is displayed by the browser.
- SRC="..."
If the TYPE is IMAGE, then this specifies the address of the image to be used.
- TYPE="..."
Specifies the type of control being used. Possible types are:
- CHECKBOX
Creates a checkbox. If the user checks it, the corresponding name/value pair is sent to
the server.
- HIDDEN
Nothing is displayed by the browser, but the information is still sent to the server.
- IMAGE
Like the SUBMIT type, you can have the form sent immediately when the user clicks on an
image. Along with the normal information, when a form is submitted by clicking on an
image, the coordinates of the clicked point (measured in pixels from the upper-left corner
of the image) are also sent. The x-coordinate is submitted with a ".x" appended
to the name and the y-coordinate has a ".y" appended to the name.
- PASSWORD
Creates a single line entry text box just like the TEXT type, however, user input is not
echoed on the screen.
- RADIO
Creates a radio list of alternatives of which only one can be selected. Each alternative
must have the same name, but different values can be assigned to each.
- RESET
Creates a 3D button that clears the entire form to original values when clicked. You can
give the button a name by using the VALUE attribute.
- SUBMIT
Creates a 3D button that submits the form when clicked. You can give the button a name by
using the VALUE attribute.
- TEXT
Creates a single line text entry box. You can specify the size of the text box by using
the SIZE attribute.
- VALUE="..."
Specifies the value to be submitted along with the corresponding name (part of the
NAME/VALUE pair). Specifies the default text string for TEXT. For RESET and SUBMIT, this
specifies the text string to be displayed on the 3D button.
- <ISINDEX attributes>
Displays a text box indicating the presence of a searchable index. Simply adding this tag
will not create a searchable page. The server must be set up to support it. Below are the
attributes for it:
- ACTION="..."
Specifies the location of the gateway program to which the search string should be passed.
- PROMPT="..."
Specifies an alternate prompt for the text box.
===== K =====
- <KBD>.....< /KBD>
Specifies text to be entered at the keyboard. Text is rendered as bold and fixed width.
===== L =====
- <LI attributes>
Used to mark text as a list item in any of the following list types: <DIR>,
<MENU>, <OL>, or <UL>. Below are the attributes for it:
- TYPE="..."
Specifies the type of bullet used to label the item. Possible values are DISC, CIRCLE,
SQUARE, A,
a, I,
i, 1.
- VALUE="..."
Specifies the number assigned to the item.
- <LINK attributes> (between the <head>.....</head>)
Currently this tag is not widely supported, however in the future browsers will use a list
of these tags to generate a navigation bar for the site. Without browser support, this tag
can still be useful for site maintenance. Below are the attributes for it:
- HREF="..."
Specifies the address of the link.
- REL="..."
Specifies the type of relationship of the link to this page. Possible values are home, toc
(table of contents), index, glossary, copyright,
bookmark, up,
next, previous
and help.
- REV="..."
Used instead of REL, this specifies a reverse relationship from this page to the link.
Possible values are made (author, set
HREF=email address) and all the ones used in REL.
- TITLE="..."
Specifies a title for the link.
- <LISTING>.....< /LISTING>
Displays text in fixed width type. Obsolete -- use the PRE tag instead.
===== M =====
- <MAP attribute>...< /MAP>
Specifies a collection of hot spots that define a client-side image map. The AREA tag can
be used inside to define the hot spots. Below are the attributes for it:
- NAME="..."
Specifies the name of the map so that it can be referred to later.
- <MARQUEE attributes>...< /MARQUEE> (IE)
Places a scrolling text marquee into the document. Below are the attributes for it:
- ALIGN="..."
Specifies the alignment of the text around the marquee with respect to the marquee.
Possible values are TOP, MIDDLE and BOTTOM.
- BEHAVIOR="..."
Specifies the behavior of the marquee text. Possible values are SCROLL,
SLIDE and ALTERNATE.
"SCROLL" is the default, "SLIDE" makes the text start from off the
screen and then stick, "ALTERNATE" makes the text alternate back and forth
repeatedly.
- BGCOLOR="..."
Specifies the background color of the marquee.
- DIRECTION="..."
Specifies the direction for the text to scroll. Possible values are LEFT
(default) and RIGHT.
- HEIGHT="..."
Specifies the height of the marquee in number of pixels or percentage of screen.
- HSPACE="n"
Specifies the left and right margins of the outside of the marquee in pixels.
- LOOP="n"
Specifies the number of times the marquee will loop. Values of "-1" or
"INFINITE" make the marquee loop indefinitely.
- SCROLLAMOUNT="n"
Specifies the number of pixels between each successive draw of the marquee text.
- SCROLLDELAY="n"
Specifies the number of milliseconds between each successive draw of the marquee text.
- VSPACE="n"
Specifies the top and bottom margin for the outside of the marquee.
- WIDTH="..."
Specifies the width of the marquee either in pixel or percentage of the screen.
- <MENU>.....< /MENU>
Puts the enclosed items marked with <LI>, in a menu list.
- <META attribut1 attribute2> (between the
<head>.....</head>)
This element can be used to specify name/value pairs describing various properties of the
document. Below are some examples:
- To have your page automatically reloaded every X seconds, use the following:
<META HTTP-EQUIV="REFRESH" CONTENT=X >
- To have a different page automatically loaded after X seconds, use the following:
<META HTTP-EQUIV="REFRESH" CONTENT="X;
URL=http://some.address/file.htm">
- To specify an expiration date for the page so that it will be reloaded after a certain
date, use:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 23 Sep 1996 01:21:00
GMT">
- To specify keywords for certain search services to use, do the following:
<META HTTP-EQUIV="Keywords" CONTENT="keyword1, keyword2,
...">
- To specify a description of your page for certain search services to use, do the
following:
<META HTTP-EQUIV="Description" CONTENT="Describe your site
here....">
- <MULTICOL attributes>.....< /MULTICOL>
Displays text in columns. Below are the attributes for it:
- COLS="..."
Specifies the number of columns to use.
- GUTTER="..."
Specifies the number of pixels between each column.
- WIDTH="..."
Specifies the width of the columns as a whole.
===== N =====
- <NOBR>.....< /NOBR>
Causes the enclosed text to not wrap to fit the screen.
- <NOFRAMES>.....< /NOFRAMES>
Placed inside the FRAMESET, anything between the beginning and ending of this tag is
viewable only by browsers that do not support frames. This tag is used to create pages
that are compatible with older browsers that do not support frames.
- <NOSCRIPT> ..... < /NOSCRIPT>
Encloses anything you want displayed by browsers that do not support inline scripts. These
go inside the SCRIPT tags.
===== O =====
- <OL attributes>.....< /OL>
Puts the enclosed items marked with <LI>, in a numbered list. Below are the
attributes for it:
- TYPE="..."
Specifies the type of numbering used to label the item. Possible values are A, a,
I, i,
1.
- START="..."
Specifies the starting value for the numbering.
- <OPTION attributes>
Specifies an item in the drop down list. Placed within the opening and closing SELECT
tags. Any text following the OPTION tag is what the user will see in the list. Below are
the attributes for it:
- VALUE="..."
Specifies the value to be returned (part of the NAME/VALUE pair).
- SELECTED
This item will already be highlighted when the page loads.
===== P =====
- <P attributes>.....< /P>
Designates the enclosed text as a plain paragraph. The end tag is optional. Below are the
attributes for it:
- ALIGN="..."
Specifies the alignment for the paragraph. Possible values are CENTER,
LEFT and RIGHT.
- <PLAINTEXT>.....< /PLAINTEXT>
Displays text in fixed width type without processing most HTML tags. Obsolete -- use the
PRE tag instead.
- <PRE>.....< /PRE>
Displays text in fixed-width type without collapsing spaces.
===== S =====
- <S>.....< /S>
Displays text with a line through it. The <STRIKE> tag does exactly the same.
- <SAMP>.....< /SAMP>
Indicates sample output from a form or program. Text is rendered in small font.
- <SCRIPT attributes>.....< /SCRIPT>
Encloses scripting language statements to be executed by the browser. To ensure backward
compatibility, enclose the script statements in comment tags (<!-- ..... -->). Below
are the attributes for it:
- LANGUAGE="..."
Specifies which language is being used in the script such as "VBScript" or
"JavaScript".
- SRC="..."
Specifies the location of a file containing the script. This can be used if you don't want
the code to be on the same HTML file.
- <SELECT attributes>.....< /SELECT>
Creates a drop-down list of items. The list items are defined by the OPTION tags placed
inside the opening and closing SELECT tag. Below are the attributes for it:
- MULTIPLE
Specifies that multiple items may be selected.
- NAME="..."
Specifies the name of the list (part of the NAME/VALUE pair).
- SIZE="..."
Specifies how many items should be visible.
- <SMALL>.....< /SMALL>
Makes the enclosed text one size smaller.
- <SPACER attributes>.....< /SPACER> (N)
Inserts blocks of spaces into HTML documents. Below are the attributes for it:
- ALIGN="..."
When TYPE=BLOCK, this specifies the alignment of the surrounding text. Possible values
are:
- RIGHT and LEFT
Aligns the block of space to the specified side of the page and all text is wrapped around
the block.
- TOP, MIDDLE,
BOTTOM, TEXTTOP,
ABSMIDDLE, BASELINE
and ABSBOTTOM
Specifies the vertical alignment of the block of space with other items on the same line.
- HEIGHT="..."
When TYPE=BLOCK, this specifies the height of the block.
- SIZE="..."
When TYPE=HORIZONTAL or VERTICAL, this specifies the size of the space.
- TYPE="..."
Specifies the type of space being inserted. Possible values are:
- BLOCK
Inserts a rectangular block of space, much like the IMG tag.
- HORIZONTAL
Inserts blank spaces between words.
- VERTICAL
Inserts spaces between two lines.
- WIDTH="..."
When TYPE=BLOCK, this specifies the width of the block.
- <STRONG>.....< /STRONG>
Stronger emphasis on the enclosed text (bold).
- <SUB>.....< /SUB>
Renders the enclosed text in subscript.
- <SUP>.....< /SUP>
Renders the enclosed text in superscript.
===== T =====
- <TABLE attributes>.....< /TABLE>
Creates a table that can include any number of rows. Below are the attributes for it:
- BACKGROUND="..." (IE)
Specifies the address of an image to be tiled as background.
- BGCOLOR="..."
Specifies the background color of the table.
- BORDER="..."
Specifies the width of the border around the table. If set to 0, there will be no border.
- BORDERCOLOR="..."
Specifies the border color of the table.
- BORDERCOLORDARK="..." (IE)
Specifies the darker color used in creating the 3D borders independently.
- BORDERCOLORLIGHT="..." (IE)
Specifies the lighter color used in creating the 3D borders independently.
- CELLPADDING="..."
Specifies the amount of space between the edges of the cell and the text inside.
- CELLSPACING="..."
Specifies the amount of space between the cells in the table.
- FRAME="..." (IE)
Specifies which sides of the outer border of the table are displayed. Possible types are:
- ABOVE
Displays a border on the top side of the table.
- BELOW
Displays a border on the bottom side of the table.
- BORDER
Displays a border on all sides of the table.
- BOX
Displays a border on all sides of the table.
- HSIDES
Displays the top and bottom borders of the table.
- LHS
Displays the left-hand side border.
- RHS
Displays the right-hand side border.
- VOID
No outside borders are displayed.
- VSIDES
Displays the right and left side borders.
- HEIGHT="..."
Specifies the height of the table on the page.
- RULES="..." (IE)
Specifies which inner borders of the table are displayed. Possible types are:
- ALL
Displays inner borders between all rows and columns.
- COLS
Displays inner borders between the table columns.
- GROUPS
Displays inner borders between the various table groups such as THEAD, TFOOT, TBODY and
COLGROUP groups.
- NONE
No inside borders are displayed.
- ROWS
Displays inner borders between the table rows.
- WIDTH="..."
Specifies the width of the table on the page.
- <TEXTAREA attributes>.....< /TEXTAREA>
Creates a multi-lined text entry box. Any text placed in between the tags is used as the
default text string that is displayed when the page is loaded. Below are the attributes
for it:
- COLS="..."
Specifies how wide the text box will be.
- ROWS="..."
Specifies how high the text box will be.
- NAME="..."
Specifies the name of the text box for use by the program that is processing the form.
- WRAP="..."
Specifies how text will wrap. Possible values are HARD,
SOFT and NONE.
- <TBODY>.....< /TBODY> (IE)
Encloses the body of your table. This tag is optional unless you are using the THEAD or
TFOOT tags. It used to separate the rows in the table from those in the header or footer.
- <TD attributes>
These go inside the TR tags and they define the data in a cell. End tag may be used. Below
are the attributes for it:
- ALIGN="..."
Specifies the horizontal alignment of the cell contents. Possible values are LEFT, RIGHT
and CENTER.
- BACKGROUND="..." (IE)
Specifies the address of an image to be tiled as background.
- BGCOLOR="..."
Specifies the background color for the individual cell.
- BORDERCOLOR="..."
Specifies the border color of the cell.
- BORDERCOLORDARK="..." (IE)
Specifies the darker color used in creating the 3D borders independently.
- BORDERCOLORLIGHT="..." (IE)
Specifies the lighter color used in creating the 3D borders independently.
- COLSPAN="..."
Specifies the number of columns the cell will span.
- HEIGHT="..."
Specifies the height of the cell.
- NOWRAP
Prevents word wrapping within the cell.
- ROWSPAN="..."
Specifies the number of rows the cell will span.
- VALIGN="..."
Specifies the vertical alignment of the cell contents. Possible values are TOP, MIDDLE,
BOTTOM and BASELINE.
- WIDTH="..."
Specifies the width of the cell.
- <TH attributes>.....< /TH>
Makes the cell a table heading. Below are the attributes for it:
- ALIGN="..."
Specifies the horizontal alignment of the cell contents. Possible values are LEFT, RIGHT
and CENTER.
- BACKGROUND="..." (IE)
Specifies the address of an image to be tiled as background.
- BGCOLOR="..."
Specifies the background color for the cell.
- BORDERCOLOR="..."
Specifies the border color of the cell.
- BORDERCOLORDARK="..." (IE)
Specifies the darker color used in creating the 3D borders independently.
- BORDERCOLORLIGHT="..." (IE)
Specifies the lighter color used in creating the 3D borders independently.
- COLSPAN="..."
Specifies the number of columns the cell will span.
- HEIGHT="..."
Specifies the height of the cell.
- NOWRAP
Prevents word wrapping within the cell.
- ROWSPAN="..."
Specifies the number of rows the cell will span.
- VALIGN="..."
Specifies the vertical alignment of the cell contents. Possible values are TOP, MIDDLE,
BOTTOM and BASELINE.
- WIDTH="..."
Specifies the width of the cell.
- <TFOOT>.....< /TFOOT> (IE)
Encloses the table rows that are to be used as a footer. It is an optional tag and comes
right after the ending TBODY element.
- <THEAD>.....< /THEAD> (IE)
Encloses the table rows that are to be used as a header. It is an optional tag and comes
before the opening TBODY element.
- <TITLE>.....< /TITLE> (between the
<head>...</head>)
Indicates the title of the document that is used as the window caption. This is the second
of the two required tags for any HTML 3.2 compliant document.
- <TR attributes>.....< /TR>
Specifies a table row. It can enclose the table heading and table data. Below are the
attributes for it:
- ALIGN="..."
Specifies the horizontal alignment of the row contents. Possible values are LEFT, RIGHT
and CENTER.
- BGCOLOR="..."
Specifies the background color for the row.
- BORDERCOLOR="..."
Specifies the border color of the row.
- BORDERCOLORDARK="..." (IE)
Specifies the darker color used in creating the 3D borders independently.
- BORDERCOLORLIGHT="..." (IE)
Specifies the lighter color used in creating the 3D borders independently.
- HEIGHT="..."
Specifies the height of the cell.
- VALIGN="..."
Specifies the vertical alignment of the row contents. Possible values are TOP, MIDDLE,
BOTTOM and BASELINE.
- <TT>.....< /TT>
The enclosed text is typewriter font.
===== U =====
- <U>.....< /U>
The enclosed text in underlined. Try to avoid this since underlined text usually indicates
a link.
- <UL attributes>.....< /UL>
Puts the enclosed items marked with <LI>, in a bulleted list. Below are the
attributes for it:
- TYPE="..."
Specifies the type of bullet used to label the item. Possible values are DISC, CIRCLE
and SQUARE.
===== V =====
- <VAR>.....< /VAR>
Specifies a variable. Text is rendered in small fixed width type.
===== W =====
- <WBR>
Causes text enclosed by the NOBR tags to wrap only if necessary.
===== X =====
- <XMP>.....< /XMP>
Causes enclosed text to be displayed by the browser without processing most HTML tags.
Obsolete -- use the PRE tag instead.
| top | !
| A | B | C
| D | E | F
| H | I | K
| L | M | N
| O | P | S
| T | U | V
| W | X |
