SPEED | A | B | C | D | E | F | H | I | | L | M | O | P | S | T | U | ? | FINDER |
<a> anchor
name=text
<a name="Images">
href
name
attribute),
to remote locations, or to a destination within a remote document. The live area will be any text and images located between the tags.
This link takes you to the <a href="http://www.ctcc.gov.za/ccchome.html">Cape Town <img src="graphics/cape_sm.jpg"></a> home page.
The border around the graphic indicates that it is a live link. <br>
Check out this document's section on <a href="#image">Images.</a> <br>
This link takes you to the <a href="sterolab.htm#facts">Facts</a> section of my Stereolab page.
href
with mailto
href
attribute to to allow the reader to mail you.
Mail me at <a href="mailto:wcons@cix.compulink.co.uk">wcons@cix.compulink.co.uk</a>.
<address>
<address>
University of Bath<br>
Claverton Down<br>
Bath<br>
UK<br>
</address>
<b> bold
<strong>
.
Cars are <b>not</b> toys. They are 1 ton killing machines.
<basefont>
<font>
to set a default font size. Always used with the size
attribute.
size=value
<basefont size=2>
<font size=+1>Tottenham Hotspur</font>
<basefont size=4>
<font size=+1>Chelsea</font>
<blink>
Blinking flip: <blink>flip</blink>
<blockquote>
<cite>
.
The best bit was when when Hamlet said,
<blockquote>
To be, or not to be.<br>
That is the question.<br>
</blockquote>
But then everyone knows that.
To be, or not to be.But then everyone knows that.
That is the question.
<body>
<body>
element contains all the information which is part of the document, as opposed to information about the document, which should be in the <head>
.
The <body>
tag should be placed directly after the closing head tag, </head>
. The closing body tag, </body>
should be placed as the pen-ultimate line of the document, directly before the </html>
tag.
<html>
<head>
<title>A Shell Document</title>
</head>
<body>
The document in here
</body>
</html>
bgcolor=#hexcolour
, text=#hexcolour
, link=#hexcolour
, vlink=#hexcolour
, alink=#hexcolour
text
controls the main body text,
link
controls unvisited links, vlink
controls visited links and alink
controls active links. All of these attributes are optional.
The colours are described in hexidecimal.
<body bgcolor="#ffffd8" text="#000000" link="#0000ff" vlink="#ff0000" alink="#00a000">
background=URL
<body background="graphics/grstone" text="#FFFFFF">
<br> break
This text is on one line.<br>
This text is on the next line.
clear=left|right|all
<img align=right src="graphics/cliff.gif">
This text is on one line.<br clear="all">
This text is on the line below the graphic.
<caption> table caption
<center>
<center>
This text is in the middle of the line.
</center>
<cite>
<blockquote>
.
Listen to Radio 1's <cite>Evening Session</cite> for great new music.
<code>
<TT>
and <PRE>
.
The logical style <code>code</code> is used to display examples of programming code.
code
is used to display examples of programming code.
<dd> definition list definition
<dir> directory list
<dl> definition list
<dt> definition list term
<em> emphasis
<strong>
.
Tricky is the <em>most original</em> artist currently on the British music scene.
<font>
size=value|+-value
basefont
) or absolutely. Valid in the range 1-7.
Make the text <font size=+1>a bit bigger</font>,
<font size=-1>a bit smaller</font>,
<font size=7>huge</font> or
<font size=1>tiny</font>.
color=#hexvalue|colourname
<font color="#00FF00">green</font>
<font color="purple">purple</font>
<form>
<h1>
,<h2>
,<h3>
,<h4>
,<h5>
,<h6> heading style
<h1>A Level 1 Heading</h1>
Some text.
<h2>A Level 2 Heading</h2>
Some more text.
<head>
body
.
The <head>
would follow the <html>
tag and precede the <body>
element.
<html>
<head>
<title>HTML Commands guide: A Shell Document</title>
</head>
<body>
The document in here
</body>
</html>
<hr> horizontal rule
<blockquote>
or list
tag.
align=left|right|clear
size=value
width=value|percent
<size>
to set what most people would call the line width!
noshade
<hr align=right size=20 width=400 noshade>
<html>
<html>
<head>
<title>HTML Commands guide: A Shell Document</title>
</head>
<body>
The document in here
</body>
</html>
<i> italic
<em>
.
<i>Drilling?</i>, repeated Ginger, <i>How would I know how to drill? I'm a cat...</i>, he said.
<img> image
src=URL
align=left|right|middle|top|texttop|middle|absmiddle|baseline|bottom|absbottom
left
and right
are probably the most useful and create a new floating type graphic which finds the next available margin to allow text to wrap. The rest of the align options are an attempt to get graphics to do exactly what you want them to. Top
aligns with the top of the tallest item in the line. Texttop
aligns with the top of the tallest text in the line (not always the same as top
). Middle
aligns the middle of the image with the baseline of the current line. Absmiddle
aligns the middle of the image with the middle of the current line. Baseline
aligns the bottom of the image with the baseline of the current line. Bottom
does exactly the same as baseline
. Absbottom
aligns the bottom of the image with the bottom of the current line.
You must use align
if you wish to wrap text around the graphic,
otherwise the image will behave as a character. Note: to place an image in the centre of the screen you must use <center>
alt=text
border=value
border=0
to turn off the border.
height=value
, width=value
width
and height
. Not all browsers support this attribute. It is very good idea to specify the width and height for every image you use, as browsers can then display text before the images have loaded, giving the effect of quicker downloads.
hspace=value
vspace=value
<a href="http://adaweb.com/adaweb/influx/long/long0.html">
<img align="left" border="off" height=80 src="graphics/body1.gif" hspace=15 alt="[amorphous body]">
Armorphous body</a>
ismap
<input> form input box
<li> bullet
lists <ol>
, <ul>
, <li>
, <dt>
, <dd>
<menu> menu list
<ol> ordered list
<option> form list item
<p> paragraph
A paragraph.
<p>The next paragraph.
The next paragraph.
<pre> pre-formatted text
<br>
tag is not necessary to cause a line-break. It is sometimes used to display text in a tabular or column format, as all spaces typed in the HTML code are displayed by the browser. Combined with the fixed-width font, this facilitates the alignment of text.
I do not recommend the use of <pre>
for formatting a few words at a time, as unpredicable results are occasionly produced. Use <code>
or <tt>
as an alternative.
<pre>
FOR x=1 TO 10
PRINT "The square of ";x;" is ";x^2
NEXT x
</pre>
FOR x=1 TO 10 PRINT "The square of ";x;" is ";x^2 NEXT x
<select> form list box
<strong>
<em>
.
<strong>Warning: <strong>
no entry without protection.
</pre>
<sub> subscript
Sulphuric acid, H<sub>2</sub>S0<sub>4</sub>.
<sup> superscript
Equation of a circle: r<sup>2</sup> = x<sup>2</sup> + y<sup>2</sup>.
<table>
<td> table data
<th> table heading
<title>
<head>
tags.
<html>
<head>
<title>HTML Commands Guide: A Shell Document</title>
</head>
<body>
The document in here
</body>
</html>
<tr> table row
<tt> typewriter text
Courier is an example of a <tt>fixed-width font</tt>, as is MS LineDraw.
<ul> unordered list
wcons@cix.compulink.uk | ©1996 Richard Rutter |