Opening Page Tags

<html></html>
Opens and closes an HTML document

 

<head></head>
Holds the parts of the HTML page that are not displayed inside the Web page, such as the title, JavaScript properties and other formatting information.

 

<body></body>
Identifies the content (or body) of an HTML document – this is where the visible content resides

<title></title>
Encloses the title of the document, which will show up in the browser’s title bar

 

Body Tags

<body bgcolor=#RRGGBB or “colorname”>
Sets the background color, using hex value or recognized color name

 

<body text==#RRGGBB or “colorname”>
Sets the text color, using hex value or recognized color name

 

<body link==#RRGGBB or “colorname”>
Sets the color of unvisited links, using hex value or recognized color name

 

<body vlink==#RRGGBB or “colorname”>
Sets the color of visited links, using hex value or recognized color name

 

<body alink==#RRGGBB or “colorname”>
Sets the color of active (currently selected) link

 

Recognized colors:


Black = "#000000"

Green = "#008000"

Silver = "#C0C0C0"

Lime = "#00FF00"

Gray = "#808080"

Olive = "#808000"

White = "#FFFFFF"

Yellow = "#FFFF00"

Maroon = "#800000"

Navy = "#000080"

Red = "#FF0000"

Blue = "#0000FF"

Purple = "#800080"

Teal = "#008080"

Fuchsia = "#FF00FF"

Aqua = "#00FFFF



Links

<a href="URL"></a>
Creates a hyperlink

 

<a href="mailto:EMAIL"></a>
Creates a mailto link

 

<a name="NAME"></a>
Creates a target location within a document

 

<a href="#NAME"></a>
Links to that target location from elsewhere in the document

 

Formatting

TEXT TAGS

<b></b>
Creates bold text

 

<i></i>
Creates italic text

 

<blockquote>\</blockquote>

Indents text from both sides. Used for setting off large portions of text.

 

<pre></pre>
Creates preformatted text. The browser will reproduce the same formatting, indentation and white space of the enclosed text.

 

<hl></hl>
Creates the largest headline

 

<h6></h6>
Creates the smallest headline

 

<strong></strong>
Emphasizes a word (with italic or bold)

 

<font size=?></font>
Sets size of font, from 1 to 7

 

<font color=?></font>
Sets font color, using name or hex value

 

<tt></tt>
Creates teletype, or typewriter-style text

 

<cite></cite>
Creates a citation, usually italic


<em></em>

Emphasizes a word (with italic or bold)

 

<p></p>
Creates a new paragraph. A line break and return occur where this tag is placed.

 

<p align=?>
Aligns a paragraph to the left, right, center or justified

 

<br>
Inserts a line break (no carriage return)

 

<dl></dl>
Creates a definition list

 

<dt>
Precedes each definition term

 

<dd>
Precedes each definition

 

<ol></ol>
Creates a numbered list

 

<ul></ul>
Creates a bulleted list

 

<li>

Identifies an item in a list and adds a bullet or number, depending on the type of list.

 

<div align=?>
A generic tag used to format large blocks of HTML, also used for stylesheets

Graphical Elements

IMAGE TAGS

<img src="name">
Adds an image

 

<img src="name" align=?>
Aligns an image: left, right, center; bottom, top, middle

 

<img src="name" border=?>
Sets size of border around an image

 

<hr>
Inserts a horizontal rule

 

<hr size=?>
Sets size (height) of rule

 

<hr width=?>
Sets width of rule, in percentage or absolute value

 

<hr noshade>
Creates a rule without a shadow

 

TABLE TAGS Tables

<table></table>
Surrounds the contents in a table

 

<tr></tr>
Sets off each row in a table

 

<td></td>
Sets off the data in each cell in the table

 

<th></th>
Sets off the table header (a normal cell with bold, centered text)

Table Attributes

<table border=#>
Sets width of border around table cells (in pixels)

 

<table cellspacing=#>
Sets amount of space between table cells

 

<table cellpadding=#>
Sets amount of space between a cell's border and its contents

 

<table width=# or %>
Sets width of table - in pixels or as a percentage of document width

 

<tr align=?> or <td align=?>
Sets alignment for content in rows or cell(s) (left, center, or right)

 

<tr valign=?> or <td valign=?>
Sets vertical alignment for cell(s) (top, middle, or bottom)

 

<td colspan=#>
Sets number of columns a cell should span

 

<td rowspan=#>
Sets number of rows a cell should span

 

<td nowrap>
Prevents the content within a cell from turning onto more than one line.

 

<td bgcolor=”RRGGBB” or “Color”>

Use this command to change the color of a table or cell.

 

FRAMES

<frameset></frameset>
Tag in a frames document that is the main container for any frame

 

<frameset rows="value,value">
Defines the rows within a frameset, using number in pixels, or percentage of w idth

 

<frameset cols="value,value">
Defines the columns within a frameset, using number in pixels, or percentage of width

 

<frame>
Defines a single frame - or region - within a frameset

 

<frame src="URL">
Specifies which HTML document should be displayed in the defined frame

 

<frame name="name">
Names the frame, or region, so it may be targeted by other frames

 

<frame marginwidth=#>
Defines the left and right margins for the frame; must be equal to or greater than 1 (pixel)

 

<frame marginheight=#>
Defines the top and bottom margins for the frame; must be equal to or greater than 1 (pixel)

 

<frame scrolling=VALUE>
Sets whether the frame has a scrollbar; value may equal "yes," "no," or "auto. " The default, as in ordinary documents, is auto. Auto makes scroll bars appear only when more content than fits in the window must be displayed.

 

<frame noresize>
Prevents the user from resizing a frame

 

<noframes></noframes>
Defines what will appear on browsers that don't support framestributes

 

FORMS

For functional forms, you'll have to run a CGI script. The HTML just creates the appearance of a form.

 

<form></form>
Defines an input form

 

<select name="NAME"></select>
Creates a pulldown menu

 

<select multiple name="NAME" size=?></select>
Creates a scrolling menu. Size sets the number of menu items visible before you need to scroll.

 

<option>
Sets off each menu item in a dropdown list inside SELECT

 

<fieldset>

Identifies a selection of controls within a form as a group

 

<legend>

Assigns a caption to a group of form controls in a fieldset

 

<textarea name="NAME" cols=40 rows=8></textarea>
Creates a text box area. Columns set the width; rows set the height.

 

<input name="name">

 Assigns a name to go with the input field.

 

<input type="checkbox" name="NAME">
Creates a checkbox. Text follows tag.

 

<input type="radio" name="NAME" value="x">
Creates a radio button. Text follows tag

 

<input type=text name="TYPE" size=20>
Creates a one-line text area. Size sets length, in characters.

 

<input type="submit" value="NAME">
Creates a Submit button

 

<input type="image" border=0 name="NAME" src="name.gif">
Creates a Submit button using an image

 

<input type="reset">
Creates a Reset button