HTML Tag and Attributes List
|
<!-- ??? -->
| Allows you to insert comments into an HTML document and have them completely ignored by the browser. This is useful for such things as revision histories and notes about how to improve the document. |
<!DOCTYPE ...>
| The <!DOCTYPE ...> declaration (technically it's not a "tag") should be the very first thing in your document... if you choose to use it at all. <!DOCTYPE ...> tells the browser what version of HTML you are writing in. More specifically, <!DOCTYPE ...> declares that this document conforms to a specific version of HTML , and specifies what version that is.
The necessity of <!DOCTYPE ...> is a subject of much debate. The standards published by W 3 C require the use of <!DOCTYPE ...> . However, much of the HTML being written does not conform strictly the W 3 C specifications, and so using <!DOCTYPE ...> (which is, after all, a claim that you conform to the standards) would seem unnecessary.
However, <!DOCTYPE ...> has its place on a page, even if you decide to use a little non-standard markup. <!DOCTYPE ...> 's most useful purpose is when used in conjunction with one of the various HTML analyzers. The analyzers look to the <!DOCTYPE ...> to determine what type of HTML you are trying to write. Our recommendation is that you use the appropriate <!DOCTYPE ...> . It won't hurt and allows you to make use of the HTML checkers available.
This is the <!DOCTYPE ...> declaration for HTML version 3.2: |
<A ...> Anchor
| HREF: URL you are linking to
|
NAME: name a section of the page
|
TARGET = "_blank" | "_parent" | "_self" | "_top" | window name
which window the document should go in
|
TITLE: suggested title for the document to be opened
|
onClick: script to run when the user clicks on this anchor
|
onMouseOver: when the mouse is over the link
|
onMouseOut: when the mouse is no longer over the link
|
ACCESSKEY
|
<ADDRESS>
| |
<APP ...>
| |
<APPLET ...>
| CODE: the applet to run
|
CODEBASE: path to the applet class
|
WIDTH: width of the applet
|
HEIGHT: height of the applet
|
ALIGN = LEFT | RIGHT | TOP | MIDDLE | BOTTOM | BASELINE
alignment of applet to surrounding text
|
VSPACE: vertical space between applet and surrounding text
|
HSPACE: horizontal space between applet and surrounding text
|
BORDER: empty space surrounding the applet
|
NAME: name of applet for reference by other applets
|
ARCHIVE: a compressed collection of applet components
|
MAYSCRIPT: If Java can use JavaScript
|
<AREA ...>
| HREF: URL you are linking to
|
ALT: alternate text if the image isn't displayed
|
SHAPE = RECT | CIRCLE | POLY | DEFAULT
what shape is this area?
|
COORDS: coordinates for the link area shape
|
TITLE: Short description of the area
|
TARGET: what frame to go to
|
NOHREF: this area is not a link
|
onClick: script action when the user clicks this area
|
onMouseOver
|
onMouseOut
|
<B> Bold
| |
<BASE ...> Base Address
| HREF: default address for hypertext links
|
TARGET = "_blank" | "_parent" | "_self" | "_top" | frame name
default window for linked documents
|
<BASEFONT ...>
| SIZE
|
COLOR
|
FACE
|
<BGSOUND ...>
| SRC: URL of the sound
|
LOOP = INFINITE | number of loops
how many times to play the sound
|
<BIG>
| |
<BLINK>
| |
<BLOCKQUOTE ...> Block Quote
| |
<BODY ...>
| BGCOLOR: background color of the page
|
BACKGROUND: background picture for the page
|
TEXT: color of the text on the page
|
LINK: color of links that haven't been followed yet
|
VLINK: color of links that have been followed
|
ALINK: color of links while you are clicking on them
|
BGPROPERTIES = FIXED
if the background image should not scroll
|
TOPMARGIN: size of top and bottom margins
|
LEFTMARGIN: size of left and right margins
|
MARGINHEIGHT: size of top and bottom margins
|
MARGINWIDTH: size of left and right margins
|
onLoad: Script to run once the page is fully loaded
|
onUnload
|
onFocus
|
onBlur
|
STYLESRC: MS FrontPage extension
|
SCROLL = YES | NO
If the document should have a scroll bar
|
<BR ...> Line Break
| CLEAR = LEFT | RIGHT | ALL | BOTH
go past a picture or other object
|
<BUTTON ...>
| TYPE = BUTTON | SUBMIT | RESET
what type of button is this
|
onClick: script to run when the user clicks here
|
NAME: name of this button element
|
VALUE: the value sent with the form
|
DISABLED: disable this button
|
ACCESSKEY: shortcut key for this button
|
TABINDEX: tab order
|
<CAPTION ...>
| ALIGN = TOP | BOTTOM | LEFT | RIGHT
alignment of caption to table
|
VALIGN = TOP | BOTTOM
if caption should be above or below table
|
<CENTER ...>
| |
<CITE> Citation
| |
<CODE>
| |
<COL ...> Column
| SPAN: how many columns this affects
|
ALIGN = LEFT | CENTER | RIGHT | JUSTIFY
horizontal alignment
|
WIDTH: width of the column
|
BGCOLOR: background color of the column
|
<COLGROUP ...> Column Group
| SPAN: how many columns this affects
|
ALIGN: alignment of cell contents
|
WIDTH: Width of the column group
|
<COMMENT>
| |
<DD> Definition Description
| |
<DEL> Deleted
| |
<DFN> Definition
| |
<DIR ...> Directory List
| |
<DIV ...>
| ALIGN = LEFT | CENTER | RIGHT | JUSTIFY
text alignment
|
<DL ...> Definition List
| COMPACT: take up less space
|
<DT> Definition Term
| |
<EM> Emphasis
| |
<EMBED ...>
| SRC: URL of resource to be embedded
|
WIDTH: width of area in which to show resource
|
HEIGHT: height of area in which to show resource
|
ALIGN = ABSBOTTOM | ABSMIDDLE | MIDDLE | TEXTTOP | RIGHT | LEFT | BASELINE | CENTER | BOTTOM | TOP
|