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
<p>
A new paragraph
starts here
<address>...</address>
seems to just set italic text, but is meant to show the author of the document
mydocument / me / [email protected]
<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 . 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 with the top aligned.
<IMG SRC="image.gif" align=middle>
displays the 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 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.
Plain input field
<form>
<input NAME="From">
</form>
text areas
SIZE 15,5 ALIGN=middle
submission buttons
Type="submit"
reset button
Type="reset"
radio buttons
Type=radio
<isindex>
allows the user to search some file.
This is really a pre-defined form with a predefined Text Field. It would have
been ice to be able to set the text to whatever you wanted though.
<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 me
Image maps
How are they created, and how is user input processsed?
forms
How is the information processed one a form has been completed?
isindex
Presumably this is a bit like the question on forms?
wais
does Mosaic support wais? how so?
character codes
á .... á â .... â æ .... æ
à .... à & .... & å .... å
ã .... ã ä .... ä ç .... ç
é .... é ê .... ê è .... è
ð .... ð ë .... ë > .... >
í .... í î .... î ì .... ì
ï .... ï < .... < ñ .... ñ
ó .... ó ô .... ô ò .... ò
ø .... ø õ .... õ ö .... ö
" .... " ß .... ß þ .... þ
ú .... ú û .... û ù .... ù
ü .... ü ý .... ý ÿ .... ÿ
Internal images
internal-gopher-binary internal-gopher-index
internal-gopher-image internal-gopher-menu
internal-gopher-movie internal-gopher-sound
internal-gopher-text internal-gopher-telnet
internal-gopher-unknown
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.
Index
A
about the author
text areas
B
block quotes
inserting a line-break
C
special character codes
inserting comments
D
displaying images
F
Forms
- input fields
- text areas
- pull down menus
- processing
text formatting styles
- address field
- bold face
- cited text
- source code
- definitions field
- emphasised text
- fixed width
- italic face
- user input style
- strong face
- struck out
- variable name
H
header levels
horizontal lines
I
image alignment
displaying images
searching indices
other sources of information
input
- default fields
- text panel
- submit buttons
- reset buttons
- radio buttons
internal images
image maps
L
header levels
horizontal lines
inserting a line-break
links
- named tag in document
- local file
- file on a http server
- ftp server
- news server/group
- gopher server
- wais server
lists
- accross the page
- of descriptions
- title
- elements
- list elements
- numbered
- not numbered
- of paragraphs
literal character strings
M
image maps
pull down menu
O
obsolete features
- XMP tag
- PLAINTEXT tag
- LISTING tag
P
form processing
paragraphs
pre formatted text
pull down menu
- elements of
Purpose of document
S
searching indices
other sources of information
special character codes
text formatting styles
- address field
- bold face
- cited text
- source code
- definitions field
- emphasised text
- fixed width
- italic face
- user input style
- strong face
- struck out
- variable name
T
text areas
Document title
U
other sources of information
W
connecting to wais servers
?
contributors welcome on the following
- BASE tag
- processing FORMS
This is the end of the document
<A name=end href=#backhere>...</a>
click here to go back to the backhere tag.