Basic
Tags
|
|
<html></html>
Creates
an HTML document
: Every web page
begins and ends with these tags.
|
|
|
<head></head>
Sets
up the title and other information that isn't displayed on the
Web page itself
. The title appears
in the blue bar at the top of the screen and is used in
searching for your page. Meta
tags and Javascript information is put here so that it can be
preloaded with the page.
|
|
<body></body>
Sets
off the visible portion of the document
that appears in the main window of the browser.
Whatever you want to appear on your screen should be put
between the body tags!
|
|
|
|
|
|
|
Header Tags
|
|
<title></title>
Puts
the name of the document in the title bar or blue bar at the top
of the screen. It
is important that you choose a title that will make it easy to
find your page
|
|
|
|
Body Attributes
|
|
<body
bgcolor=?>
Sets
the background colour, using name or hex value
. See the colour
page to find your perfect colour.
|
|
<body
text=?>
Sets
the text colour, using name or hex value
|
|
<body
link=?>
Sets
the colour of links, using name or hex value
|
|
<body
vlink=?>
Sets
the colour of followed links, using name or hex value
|
|
<body
alink=?>
Sets
the colour of links on click
|
|
|
|
Text Tags
|
|
<pre></pre>
Creates
preformatted text
. It is good
practice to use this method to keep your page standardized
across browsers and screen settings.
|
|
<h1></h1>
Creates
the largest headline
. Think of it like
a newspaper: Set
the headings to appropriate size based on importance.
|
|
<h6></h6>
Creates
the smallest headline
|
|
<b></b>
Creates
bold text
|
|
<i></i>
Creates
italic text
|
|
<tt></tt>
Creates
teletype, or typewriter-style text
: good to use to
offset text
|
|
<cite></cite>
Creates
a citation, usually italic
|
|
<em></em>
Emphasizes
a word (with italic or bold)
|
|
<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
|
|
|
|
Links
|
|
<a
href="URL"></a>
Creates
a hyperlink
: link within or
between documents.
|
|
<a
href="mailto:EMAIL"></a>
Creates
a mailto link
: used to email the
results of a form
|
|
<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
|
|
<p></p>
Creates
a new paragraph
|
|
<p
align=?>
Aligns
a paragraph to the left, right, or centre
|
|
<br>
Inserts
a line break
|
|
<blockquote>
</blockquote>
Indents
text from both sides
|
|
<dl></dl>
Creates
a definition list
|
|
<dt>
Precedes
each definition term
|
|
<dd>
Precedes
each definition
|
|
<ol></ol>
Creates
a numbered list
|
|
<li></li>
Precedes
each list item, and adds a number
|
|
<ul></ul>
Creates
a bulleted list
|
|
<div
align=?>
A
generic tag used to format large blocks of HTML, also used for
stylesheets
|
|
|
|
|
Graphical
Elements
|
|
<img
src="name">
Adds
an image
|
|
<img
src="name" align=?>
Aligns
an image: left, right, centre; 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
|
|
|
|
|
Tables
|
|
<table></table>
Creates
a table
|
|
<tr></tr>
Creates
each row in a table
|
|
<td></td>
Creates
each cell in a row
|
|
<th></th>
Sets
off the table header (a normal cell with bold, centred text)
|
|
|
|
|
Table
Attributes
|
|
<table
border=#>
Sets
width of border around table cells
|
|
<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 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 (default=1)
|
|
<td
nowrap>
Prevents
the lines within a cell from being broken to fit
|
|
|
|
|
Frames
|
|
<frameset></frameset>
tag
in a frames document; can also be nested in other framesets
|
|
<frameset
rows="value,value">
Defines
the rows within a frameset, using number in pixels, or
percentage of width
|
|
<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
|
|
<noframes></noframes>
Defines
what will appear on browsers that don't support frames
|
|
|
|
|
Frames
Attributes
|
|
<frame
src="URL">
Specifies
which HTML document should be displayed
|
|
<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
|
|
<frame
marginheight=#>
Defines
the top and bottom margins for the frame; must be equal to or
greater than 1
|
|
<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.
|
|
<frame
noresize>
Prevents
the user from resizing a frame
|
|
|
|
|
Forms
|
|
|
|
|
<form></form>
Creates
all forms
|
|
<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
|
|
<select
name="NAME"></select>
Creates
a pulldown menu
|
|
<option>
Sets
off each menu item
|
|
<textarea
name="NAME" cols=40 rows=8></textarea>
Creates
a text box area. Columns set the width; rows set the height.
|
|
<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="foo" 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
|