Please note that most of this material is copyrighted by someone else. This file is intended for MY PERSONAL USE ONLY. If you want a comprehensive HTML resource, go to The Tucows HTML accessories page.

<!--...
Comment. Terminate with -->
<!--#...
Server side include. File must be .SHTML for server to recognize.
<!DOCTYPE ...>
Defines the data type of the file contents.
<A ...></A>
Inserts a clickable anchor.
<ADDRESS>
<ADDRESS>your name here<br></ADDRESS> Italicizes and indents.
<APPLET ...>
Beyond the scope of this file.
<B></B>
Text between codes is in bold.
<BGSOUND ...>
<BGSOUND SRC="junk.wav"> uses junk.wav as the background audio.
LOOP=-1 Specifies the number of times the sound is to be played, -1 = Infinite.
.WAV and .AU files played in Netscape, Mosaic and IExplore, only IExplore will play .MID
<BIG></BIG>
Enclosed text is bigger.
<BLINK></BLINK>
Enclosed text blinks in NetScrape
<BLOCKQUOTE></BLOCKQUOTE>
Indents the paragraph.
<BODY></BODY>
Contains the body of the HTML document
<BR>
Forces a carriage return.
<CENTER></CENTER>
Centers enclosed text
<CITE></CITE>
Enclosed text is in citation format. Usually italics.
<CODE></CODE>
Selects a rendered, monospaced font.
<COMMENT></COMMENT>
Enclosed text is a comment in Mosaic and IExplore.
<DFN></DFN>
Enclosed text is a term being defined. Usually italics.
<DIR>
Begins a list of elements up to 20 caracters each. Usually bulleted. Elements require <LI>
<DIV></DIV>
<DIV ALIGN="left"> aligns text to the left. (right, center)
<DL> <DD> <DT>
Definition list
<EM></EM>
Enclosed text is emphasized.
<EMBED ...>
Embed an OLE object, or a plug-in.
<FONT ...> <BASEFONT ...>
Defines the font. BaseFont defines the font to use unless otherwise specified.
<FORM></FORM>
Contains elemnts of a form.
<H1></H1> (1 through 6)
Enclosed text is a header, sizes from 1 to 6.
<HEAD></HEAD>
Encloses the document header.
<HR>
Inserts a horizontal line.
<HTML></HTML>
Enclosed text is rendered by an HTTP client
<I></I>
Enclosed text is in italics
<IMG ...>
Inserts an In-Line image
<KBD></KBD>
Enclosed text is printed as text to be typed. Usually rendered as monospaced.
<LI>
Identifies start of a list item element. Must reside within a list. VALUE defines the number value of the list element, for <OL> only.
<LISTING>
Usually used to contain source code sample listing. Fixed-width font.
<MARQUEE ...></MARQUEE>
IExplore specific scrolling text
<MENU></MENU>
Compacted unordered list.
<NOBR></NOBR>
Rendering will not add carriage returns or line feeds to enclosed text.
<NOFRAMES></NOFRAMES>
A frames capable browser ignores everything enclosed.
<OBJECT>
Inserts special OLE objects and controls. Beyond the scope of this file.
<OL></OL>
Ordered list. Adds numbers to the <LI>.
<P></P>
Enclosed text is a paragraph. *Use align=center instead of <CENTER></CENTER>*
<PLAINTEXT>
Nothing following this tag will be rendered. Do not use </PLAINTEXT>.
<PRE></PRE>
Enclosed text is rendered as pre-formatted. Some tags can be used within, but sparingly.
<SAMP></SAMP>
Sequence of literal characters. Typically monospaced.
<SCRIPT ...>
Contains the script for VBasic or JAVA. Beyond the scope of this file.
<SMALL></SMALL>
Same as <BIG> but small.
<SOUND ...>
Mosaic specific version of <BGSOUND> Mosaic now supports <BGSOUND> so stick to that one.
<STRIKE></STRIKE> or <S></S>
Enclosed text is struck-out. <S> is the standard, but NetScape only supports <STRIKE>.
<STRONG></STRONG>
Enclosed text is emphasized. Usually bold.
<SUB></SUB> and <SUP></SUP>
Subscript and Superscript.
<TABLE ...></TABLE ...>
Formats data as a table.
<TT></TT>
Enclosed text is rendered in teletype font. (Fixed width)
<U></U>
Enclosed text is underlined.
<UL></UL>
Unordered list. Elements usually bulleted.
<VAR></VAR>
Variable name. Usually italics.
<WBR>
Word break. Suggests where to insert <BR> when rendering <NOBR> text.
<XMP></XMP>
Renders preformatted text. Fixed-width to 80 characters per line.

Colours!

In HTML, colours can be represented in 2 ways. One is in a 6-digit hexadecimal number, where the first two digits indicate the amount of red, the second two green, and the last two blue. Syntax is color="#000000" (white).

Mnemonic constant names can also be used, identifying 16 pre-defined colours. Black, olive, teal, red, blue, maroon, navy, gray, lime, fuschia, white, green, purple, silver, yellow and aqua.

The following tables shows samples of the predefined colours, but since only IExplore supports colours in tables, you can only see them there.

Samples of colour constants
NameSample
Black
Olive
Teal
Red
Blue
Maroon
Navy
Gray
Lime
Fuschia
White
Green
Purple
Silver
Yellow
Aqua