HTML Quick Reference Card

Structure Tags

<HTML>...</HTML>

Encloses the entire HTML document.

<HEAD>...</HEAD>

Encloses the heading of the HTML document.

<BODY>...</BODY>

Encloses the body (text & tags) of the HTML document

Titles & Headings

<TITLE>...</TITLE>

Indicates the title of the document, allowed

<H1>...</H1>

A first-level heading. <H1>to<H6> are heading-level indicators

Formatting

<B>...</B>

Boldface text.

<STRONG>...</STRONG>

Stronger emphasis (usually bold).

<I>...</I>

Italic text.

<BR>

A line break.

<P>

A plain paragraph.

<PRE>...</PRE>

Preformatted text (WYSIWYG)

<CITE.>...</CITE>

A citation.

<BLOCKQUOTE>...</BLOCKQUOTE>

Used for long quotes or citations


Lists

<OL>...</OL>

An ordered (numbered) list

<UL>...</UL>

An unordered (bulleted) list

<MENU>...</MENU>

A menu list of items.

<DIR>...</DIR>

A directory listing, items are generally smaller than 20 characters.

<LI>

A list of items for use with <OL>, <UL>, <MENU>, or <DIR>.

<DL>...</DL>

A definition or glossary list.

<DT>...</DT>

A definition term, as part of a definition list.

<DD>

The corresponding definition to a definition term, as part of a definition list.

Images

<IMG SRC=“...”>

The URL of the image.

<IMG ALT=“...”>

A text string that will be displayed in browsers thatcannot support images.

<IMG ALIGN=“...”>

How the text before and after the image will be aligned vertically with the image (e.g. TOP, MIDDLE, BOTTOM).


Links

<A HREF>...</A>

Creates a link to another document or anchor.

<A NAME>...</A>

Creates an anchor which can be linked to.

Font

<FONT> .... </FONT>

Changes the font size and color. Font size goes from 1 (smallest) to 7 (largest). Size 3 is the default size.

<FONT SIZE=4>

Changes font to size 4

<FONT COLOR=“FF0000”>

Changes color to red

<FONT SIZE=7 COLOR=“0000FF”>
I’m Big and Blue</FONT>

Tables

<TABLE>...</TABLE>

Begin/End Table

<TR>...</TR>

Table Row

<TD>...</TD>

Table Data

BORDER= #pixels

CELLPADDING= #pixels

CELLSPACING= #pixels

Colors

<BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#0000FF"
VLINK="#FF00FF"
ALINK="#FF0000">

Mailto:

<A HREF=

“mailto:”>
E-mail to Mary Smith</A>

Sends E-mail to Mary Smith at