Image Tags
| Tag |
Description |
<IMG SRC="filename"> |
Basic Image Tag |
<IMG SRC="filename" ALIGN=TOP> |
Image Aligned with top of text |
<IMG SRC="filename" ALIGN=MIDDLE> |
Image Aligned with middle of text |
<IMG SRC="filename" ALIGN=BOTTOM> |
Image Aligned with bottom of text |
<IMG SRC="filename" ALIGN=LEFT> |
Image where text wraps to the right |
<IMG SRC="filename" ALIGN=RIGHT> |
Image where text wraps to the left |
<IMG SRC="filename" ALT="Alternative text"> |
Image with alternative text (Displayed on mouse-over and when image is not loaded) |
Link Tags
| Tag |
Description |
<A HREF="URL">Link text</A> |
Link to an external URL |
<A NAME="Anchor Name">Anchor text</A> |
An Anchor for internal links |
<A HREF="#Anchor Name">Link text</A> |
An internal link to a named anchor |
<A HREF="mailto:Your.Email.Address">Email link text</A> |
Link to send Email |
<A HREF="ftp://host/directory/">FTP directory link text</A> |
Link to an FTP directory |
<A HREF="ftp://host/directory/filename">FTP file link text</A> |
Link to a file using FTP |
<A HREF="gopher://host/">Gopher link text</A> |
Link using Gopher |
<A HREF="news:newsgroup.name">Link text to a newsgroup</A> |
Link to a Usenet newsgroup |
<A HREF="telnet://host">Telnet link text</A> |
Telnet Link |
Table Tags
| Table Elements |
| Element |
Description |
<TABLE [BORDER[=n]]> ... </TABLE> |
Defines a table in HTML. If the BORDER attribute is present, the browser displays the table with a border. The thickness of the outside border of the table may be specified in pixels. |
<CAPTION [ALIGN=BOTTOM]> ... </CAPTION> |
Defines the caption for the title of the table. The default position of the title is centered at the top of the table. The attribute ALIGN=BOTTOM can be used to position the caption below the table.
NOTE: Any kind of markup tag can be used in the caption. |
<TR> ... </TR> |
Defines the table row within a table. You may define default attributes for the entire row: ALIGN (LEFT, CENTER, RIGHT) and/or VALIGN (TOP, MIDDLE, BOTTOM). See Table Attributes at the end of this table for more information. |
<TH> ... </TH> |
Defines the table header cell. By default the text in this cell is bold and centered within the cell. Table header cells may contain other attributes to determine the characteristic of the cell and/or its contents. See Table Attributes at the end of this table for more information. |
<TD> ... </TD> |
Defines the table data cell. By default the text in this cell is aligned left and centered vertically. Table data cells may contain other attributes to determine the characteristic of the cell and/or its contents. See Table Attributes at the end of this table for more information. |
Table of Contents
| Table Attributes |
|
NOTE: Attributes defined within <TH> ... </TH> or <TD> ... </TD> cells override the default alignment set in <TR> ... </TR>.
|
| Attribute |
Description |
ALIGN (LEFT, CENTER, RIGHT) |
Horizontal alignment of a cell. |
VALIGN (TOP, MIDDLE, BOTTOM) |
Vertical alignment of a cell. |
COLSPAN=n |
The number (n) of columns a cell spans. |
ROWSPAN=n |
The number (n) of rows a cell spans. |
BGCOLOR=#rrggbb or "colour" |
Specifies the background colour of a table, row or cell (see Footnote 2: Colour for a list of colours. |
BACKGROUND="imagefile" |
Specifies an image to use as a background. |
WIDTH n or n% |
Specifies the width of the table or cell in pixels or as a per centage. |
<TABLE CELLSPACING=n> |
Specifies the amount of space between a tables cells in pixels (the default value is 2). |
<TABLE CELLPADDING=n> |
Specifies the amount of space between a cells contents and its border in pixels (the default value is 0). |