HTML, the complete-ish guide
About this Document
The purpose of this document is to provide a comprehensive listing of html
tags understood by Xmosaic, in one place. And to be used to write
HTML documents.
This is based on a selective reverse engineer of Mosaic2.1 and an
amalgamation of the HTML help documents, No guarantees about accuracy of
information is given as I havent figured everything out yet.
Examples are not always provided. In case of confusion
please look at the source of this document.
This version is posted with the colour gifs stripped out as I didnt want
to uuencode and post them.
Ive done a few non-standard things to get images in headings, and I
know it's not a particularly elegant method.
There is still a lot to do, if there are any errors please let
me know as soon as possible.
Distributed under the GNU copyleft (any version of your choice)
Please don't distribute modified copies as the information is still
being assembled
HTML Codes
Document structure
base ,
title ,
link, head, body, nextid.
Documented
a ,
address ,
blockquote ,
b ,
cite ,
code ,
dir ,
dfn ,
dl ,
dd ,
dt ,
e ,
h1 ,
h2 ,
h3 ,
h4 ,
h5 ,
h6 ,
img ,
i ,
kbd ,
li ,
menu ,
ol ,
p ,
pre ,
sample ,
s ,
tt ,
ul ,
var
Obsolete
listing ,
plaintext ,
xmp
UnDocumented
br ,
comments ,
form ,
hr ,
input ,
isindex ,
option ,
select ,
strike ,
textarea ,
Documented Features
mydocument / me / me@me.com
<ul>...</ul>
unnumbered lists
<ul> start of list
<li> list element 1
<ul> start of list 2
</ul> end of list 2
<li> list element 2
<li> list element 3
<li> list element 4
</ul> end of list
which looks like
list element 1.1
list element 1.2
list element 1.3
list element 1.4
<ol>
numbered lists
<ol> start of list
<li> item
<ol> start of list 2
</ol> end of list 2
<li> item
<li> item
<li> item
</ol> end of list
which looks like
item
item
item
item
item
<li>
List items (as used above)
<menu>
This is a list of smaller paragraphs.
<menu [compact]>
<li>item
<li>item
<li>item
</menu>
This is menu item 1, This is menu item 1, This is menu item 1,
This is menu item 1, This is menu item 1, This is menu item 1,
This is menu item 1, This is menu item 1, This is menu item 1.
This is menu item 2, This is menu item 2, This is menu item 2,
This is menu item 2, This is menu item 2, This is menu item 2,
This is menu item 2, This is menu item 2, This is menu item 2,
This is menu item 3, This is menu item 3, This is menu item 3,
This is menu item 3, This is menu item 3, This is menu item 3,
This is menu item 3, This is menu item 3, This is menu item 3,
<dfn>...</dfn>
a text style used for definitions: eg: "definitions ".
<dir [compact]>
This should display the items going accross the page.
<dir>
<li>item <li>item
<li>item
</dir>
item1 item2
item3 item4
item5
<dl [compact]>...</dl>
Description list
<DL>
<DT> description 1
<DD> blah blah ....
<DT> description 2
<DD> waffle waffle ....
</DL>
is formatted to
description 1
blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah
description 2
waffle waffle waffle waffle waffle waffle waffle waffle waffle waffle
waffle waffle waffle waffle waffle waffle waffle
<dt>
Description list item title as used above
<dd>
Description list item details as used above
<pre>...</pre>
preformatted text, retains spaces and
line feeds
an optional parameter width=n can be given.
<img>
<IMG SRC="image.gif">
displays an image . By default the
bottom of the image is aligned
with the bottom of the text, This can be changed using the
parameter align
<IMG SRC="image.gif" align=top>
displays the image with the top aligned.
<IMG SRC="image.gif" align=middle>
displays the image with the
middle aligned.
if the image doesnt exist this picture:
will appear
<IMG SRC="image.gif" alt="text">
will display the text in a text environment.
<tt>...</tt>
sets fixed width font
<b>...</b>
sets bold font
<i>...</i>
sets italic font
<em>...</em>
sets emphasised font
<strong>...</strong>
sets stronger font
<code>...</code>
this sets the font to be fixed width, otherwise everything is the
same
<samp>...</samp>
a sequence of literal characters eg:
&%$*&&&(^_+_)(.
<kbd>
formats it as in manuals when users are asked to type things in.
eg: help
<var>...</var>
indicates a variable name
<cite>...</cite>
cites the text in a predefined font. This font may be set up
as being italic.
<blockquote>...</blockquote>
formats text like so
this is a block quote, this is a block quote,this is a block quote,
this is a block quote, this is a block quote,this is a block quote,
this is a block quote, this is a block quote,this is a block quote,
this is a block quote, this is a block quote,this is a block quote,
See what I mean? it should leave white space before and after it.
Obsolete features.
Undocumented features.
These features are all poorly documented.
<hr>
Places a horizontal line like the one above between the
lines of text.
<input NAME=name [value=string ] [Type =type ] [SIZE=x,y ] [checked]
ALIGN=align >
Creates an input field in a form .
TYPE can be one of
text *default* an input filed
submit calls the action specified in the form.
reset clears all the fields in the form.
radio radio buttons. Input fields with the same NAME field
can only have one active selection.
Example Output
<form>
<input NAME="From">
</form>
Example Output
SIZE 15,5 ALIGN=middle
Example Output
Type="reset"
Example Output
Type=radio
<isindex>
allows the user to search some file
search
<option>
is used within <SELECT> .
<select>...</select>
This creates a pull-down menu containing Options
in a form .
Example Output
<form>
<select NAME="direction">
<OPTION SELECTED> North
North
East
South
West
<OPTION> East
<OPTION> South
<OPTION> West
</select>
</form>
<strike>
It strikes out the selected text
<textarea>
This allows us to put
a panel of text in a form
this is a text area, this is
area, this is a text area, th
a text area, this is a text
Incomplete information
This section details the areas I am unable to find more information about.
any information will be gratefully received. Please send
working examples to me
Image maps
forms
index
wais
character codes
á .... á â .... â æ .... æ
à .... à & .... & å .... å
ã .... ã ä .... ä ç .... ç
é .... é ê .... ê è .... è
ð .... ð ë .... ë > .... >
í .... í î .... î ì .... ì
ï .... ï < .... < ñ .... ñ
ó .... ó ô .... ô ò .... ò
ø .... ø õ .... õ ö .... ö
" .... " ß .... ß þ .... þ
ú .... ú û .... û ù .... ù
ü .... ü ý .... ý ÿ .... ÿ
Other useful documents
A beginners guide to html
Amiga Mosaic pages
Darmstädt sgml ftp archive
Elements of HTML
HTML widget help
Motif faq
www Newsgroup
me
I can be contacted at the following places.
sunil@uel.co.uk
sunil@magnetic.demon.co.uk
sunil@uel.ukb.novell.com
This is the end of the document
<A name=end href=#backhere>...</a>
click here to go back to the backhere tag.