home    egovision web resource centre    

HTML Tags Encyclopaedia S-Z by name

Sample

<SAMP> text </SAMP>

Renders text in a fixed width font dependent on browser presets.
Most browsers use the same font for the KBD, SAMP, TT and CODE tags.
Script
ie3+ n2+
<SCRIPT LANGUAGE="language"> content </SCRIPT>

Identifies script code.
Can either be code to be executed at this point or later in the document.
Normally only Javascript although Explorer versions 3 onward recognise VBScript.
Usually functions are defined within these tags in the HEAD of the document so that they can be called from anywhere on the page.
Small Text
html3.2+
n2+ ie2+
<SMALL> text </SMALL>

Renders text in a smaller than nornal style.
Strikethrough

<STRIKE> text </STRIKE>

Renders text with a horizontal line through it.

Strong

<STRONG> text </STRONG>

Strongly emphasized text, most browsers will display it in boldface.
Subscript
ie3+
html3.2+n2+
<SUB> text </SUB>
Renders text smaller and lower on the line than usual.
Superscript
ie3+
html3.2+n2+
<SUP> text </SUP>

Renders text smaller and higher on the line than usual.
Table
 HTML  N1+ IE2+
<TABLE attributes> all-table-content </TABLE>

A table consists of an optional caption (CAPTION) and one or more rows (TR.)
BORDER - the table is drawn with a border.
BORDER="number" - the table is drawn with a border a number ofpixels thick.
ALIGN="alignment" - aligns all the cells in a table to either LEFT, RIIGHT or CENTER.
CELLPADDING="number" - separates the cell borders and the text with a padding in pixels.
CELLSPACING="number" - separates cells with a gutter in pixels.
WIDTH="number" - as a number of pixels or a percentage (using %) of available screen width .
ie4+HEIGHT="number" - as a number of pixels or a percentage (using %) of available screen height .
ie4+N4+BGCOLOR="#rrggbb" - sets the background colour for the entire table.
ie4+BORDERCOLOR="#rrggbb" - sets the border colour for the entire table.
ie4+BORDERCOLORLIGHT="#rrggbb" - sets the border highlight colour for the entire table.
ie4+BORDERCOLORDARK="#rrggbb" - sets the border shadow colour for the entire table.
ie4+VALIGN="align" - sets the vertical alignment (TOP or BOTTOM) for the entire table.
HTML 3.0 CLEAR="clear" - LEFT, RIGHT, or ALL - specifies which margin should be clear.
HTML 3.0 NOFLOW - stops text flow around the table.
HTML 3.0 NOWRAP - prevents word wrap within table entries.
HTML 3.0 UNITS="unit" - if the WIDTH attribute is used it specifies the units to be used this width. (en, relative or pixels).

Table Body
ie3+ IE ONLY
<TBODY> table body </TBODY>

The TBODY tag is used to group together a number of rows within a table, for assigning ID or STYLE values.
CLASS="type" - indicates the class that the element belongs too.
ID="value" - specifies a unique value for the element over the docuement.
STYLE="css" - attribute specifies the style information.
Table Column
ie3+ IE ONLY
<COL> content </COL>

The <COL> tag sets the properties of one table column at a time.
Not to be used with COLGROUP .
SPAN="number" - sets the number of rows for the column to span.
ALIGN="align" - sets the horizontal alignment of text in the column. (LEFT, RIGHT and CENTER )
Table Data
 HTML
 MS Explorer:N1+
<TD attributes>

Valid only in a TR, the TD tag defines a table cell's contents.
COLSPAN="number"the number of columns this cell occupies.
ROWSPAN="number"the number of rows this cell occupies.
NOWRAP - prevents word wrap within the cell.
ALIGN="align" - aligns content to LEFT, RIGHT or CENTER.
VALIGN="align" - aligns content to TOP, MIDDLE, BOTTOM, or BASELINE.
ie4+(Netscape Extension)BGCOLOR="#rrggbb" - sets the background colour.
ie4+BORDERCOLOR="#rrggbb" - sets the border colour.
ie4+BORDERCOLORLIGHT="#rrggbb" - sets the border highlight colour.
ie4+BORDERCOLORDARK="#rrggbb" - sets the border shadow colour.
Table Column Group
ie3+ IE ONLY
<COLGROUP> content </COLGROUP>

The COLGROUP tag sets the properties of one or more table columns.
ALIGN="align" -sets the horizontal alignment of text in the cells for the column group. (LEFT, RIGHT and CENTER )
VALIGN="align" - sets the vertical alignment for the column (TOP, MIDDLE and BOTTOM).
HALIGN="align" -sets the horizontal alignment of text in the cells for the column group. (LEFT, RIGHT and CENTER )
WIDTH="width" - specifies the width of each column in the column group.
SPAN="number - sets the number of consecutive columns for the group.
Table Footer
ie3+ IE ONLY
<TFOOT>

Defines the table footer.
The footer tag is used to group all footers.
CLASS="type" - sets the class that the element belongs too.
ID="value" - sets a unique value for the element over the document.
STYLE="css" - specifies the style information
Table Header
 HTML3.2+
 MS Explorer: Netscape:
<TH attributes>

Valid only in a TR, the TH tag defines a header cell.
COLSPAN="number"the number of columns this header occupies.
ROWSPAN="number"the number of rows this header occupies.
NOWRAP This attribute prevents word wrap within the cell.
ALIGN="align" - sets the alignment of the text within the table cell.( LEFT, RIGHT or CENTER).
VALIGN="align" - sets the alignment of the text within the table cell. (TOP, MIDDLE, BOTTOM, or BASELINE.)
ie4+(Netscape Extension)BGCOLOR="#rrggbb" - sets the background colour.
ie4+BORDERCOLOR="#rrggbb" - sets the border colour.
ie4+BORDERCOLORLIGHT="#rrggbb" - sets the border highlight colour.
ie4+BORDERCOLORDARK="#rrggbb" - sets the border shadow colour.
Table Head
ie3+ IE ONLY
<THEAD>

THEAD tag defines the table heading and is used to group all TH tags together.
ALIGN="align" - sets the alignment of text in the heading( LEFT, RIGHT or CENTER)..
CLASS="type" - sets the class that the element belongs too.
ID="value" - sets a unique value for the element over the document.
STYLE="css" sets the style information
VALIGN="align" - sets the alignment of the text (TOP, MIDDLE, BOTTOM, or BASELINE.)
Table Row
 HTML
ie2+N1+
<TR attributes>

Valid only in a TABLE, the table row tag defines a row of cells that are set uot using TH and TD tags.
ALIGN="align"- sets the alignment of the text within the table cell.( LEFT, RIGHT or CENTER)
VALIGN="align"- sets the alignment of the text within the table cell.(TOP, MIDDLE, BOTTOM, or BASELINE)
ie4+(Netscape Extension)BGCOLOR="#rrggbb" - sets the background colour.
ie4+BORDERCOLOR="#rrggbb" - sets the border colour.
ie4+BORDERCOLORLIGHT="#rrggbb" - sets the border highlight colour.
ie4+BORDERCOLORDARK="#rrggbb" - sets the border shadow colour.

Teletype

<TT> text </TT>

Renders text in a fixed width font dependent on browser presets.
Most browsers use the same font for the KBD, SAMP, TT and CODE tags.
Title

<TITLE> title-text </TITLE>

Only valid in a HEAD section, defines the title of an HTML document.
Document titles are used in the browser title bar and in bookmark lists.
Underlined

<U> text </U>

Renders text with a line underneath it.

Unordered List

<UL> list items </UL>


Introduces an unordered (bulleted) list made up of List Item (LI) tags.
html3+ SRC="URL" - specifies an image as the bullet for the item
html3+ DINGBAT="entity" - specifies an iconic entity as the bullet for the item
html3+ PLAIN - uses no bullets with list items.
html3+ WRAP="type"- either VERT or HORIZ.
VERT - data is to go down the page and then wrap to the next column.
HORIZ - data is to wrap across each row.
html3+ TYPE="type" - sets the way items are numbered CIRCLE, DISC orSQUARE.
html3.2+ COMPACT - short terms can be displayed on the same line.

Variable

<VAR> text </VAR>

Renders text often in italics depending on browser presets and should be used when representing a variable.
White Space
n3+ NETSCAPE ONLY
<SPACER attributes>

Creates an area of white space within the document.
The attributes for this tag are:
TYPE="type" - one of HORIZONTAL, VERTICAL or BLOCK.
SIZE="pixels" - use when TYPE is HORIZONTAL or VERTICAL to specify the size of the spacer in pixels.
WIDTH="width" - use when TYPE is BLOCK to specify the width of the spacer in pixels.
HEIGHT="height" - use when TYPE is BLOCK to specify the height of the spacer in pixels.
ALIGN="align" - use when spacer is a BLOCK- one of LEFT, RIGHT, TOP, TEXTTOP, MIDDLE, ABSMIDDLE, BASELINE, BOTTOM, or ABSBOTTOM.
Word Break
ie2+n1+

<WBR>

Sets a place where a word or line can be broken within a NOBR block.
Tag List
<!--
&tag;
A
ADDRESS
APPLET
AREA
B
BASE
BASEFONT
BGSOUND
BIG
BLINK
BLOCKQUOTE
BODY
BR
CAPTION
CENTER
CITE
CODE
COL
COLGROUP
DD
DFN
DIR
DL
DT
EM
EMBED
FONT
FORM
FRAME
FRAMESET
Hn
HEAD
HR
HTML
I
IFRAME
IMG
INPUT TYPE=CHECKBOX
INPUT TYPE=FILE
INPUT TYPE=HIDDEN
INPUT TYPE=IMAGE
INPUT TYPE=PASSWORD
INPUT TYPE=RADIO
INPUT TYPE=RANGE
INPUT TYPE=RESET
INPUT TYPE=SCRIBBLE
INPUT TYPE=SELECT
INPUT TYPE=SUBMIT
INPUT TYPE=TEXT
ISINDEX
KBD
LI
LINK
LISTING
MAP
MARQUEE
MENU
META
MULTICOL
NOBR
NOFRAMES
OBJECT
OL
P
PARAM
PLAINTEXT
PRE
SAMP
SCRIPT
SMALL
SPACER
STRIKE
STRONG
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TFOOT
TH
THEAD
TITLE
TR
TT
U
UL
VAR
WBR
XMP