HTML tags and their key attributes
<HTML>...</HTML> defines the HTML code
<HEAD>...</HEAD> the head of the document
<TITLE>...</TITLE> the document's title
<BODY attribute= >...</BODY> the body of the document
background= the background image
bgcolor= the background colour
text= the colour of the page text
link= the colour of links
vlink= the colour of followed links
alink= the colour of activated links
<p attribute>...</p> a paragraph
align=center centres the paragraph.
<center>...</center> centres the elements
<br> insert a line break
<hr attribute= > insert a horizontal line
size= the thickness of the line
width= the length of the line as a % of screen width
<strong>...</strong> strong type, commonly bold
<b>...</b> bold type
<em>...</em> emphasised text, usually italics
<i>...</i> italic text
<kbd>...</kbd> fixed width typewriter font
<tt>...</tt> typewriter (courier) font
<basefont size= > sets the font size for the entire page
<font attribute= >...</font> sets font attributes
size= font size, range 1-7, default is 3, can use size=+5
color= #rrggbb the font colour
<blink>...</blink> text blinks continually
<address>...</address> small italic text used for author details
<blockquote>...</blockquote> a long quote
<h1>...</h1> heading text, level one (also h2-h6 are possible)
<! > a comment
<img src= > filename or URL of a graphic
align= align text to left, right, top, middle, bottom of image
vspace= space above and below the graphic
hspace= space to the left and right of the graphic
width= image's width
height= image's height
alt= show text instead of image for text browsers
ismap mapped image with click spots (requires server support)
<a href= >...</a> a link to another URL
<ul>...</ul> an unordered list
<ol>...</ol> an ordered list
<li> a list item
<dl>...</dl> definition or glossary list
<dt> definition term
<dd> definition description
New tags used in this month's tutorial
Table attributes:
<table attribute>...</table> creates a table which can include any number of rows and columns
width= specifies the width of the table on the page
cellpadding= creates space between the borders of the table and the inside text
border= specifies the width of the table border, 0 = no border.
<tr attribute>...</tr> creates a table row
Row attributes:
valign= specifies the vertical alignment of the row's contents
<td attribute>...</td> creates a table cell, the cell's data appears between these tags.
Cell attributes:
valign= specifies the vertical alignment of the cell's contents
colspan= specifies the number of columns a cell will span
rowspan= specifies the number of rows a cell will span
width= specifies the width of the cell in the table
bgcolor= sets cell background colour (Internet Explorer and Netscape 3.0 only)