There are a number of extra tricks available in HTML to help you format your text in a nice readable format. The first are lists.
These are lists where the bits are "numbered" in some way.
<OL>
<LI>1st part of the list </LI></OL>Looks like
<LI>2nd part of the list </LI>
- 1st part of the list
- 2st part of the list
There are number of formats which are defined using a <OL type="i"> command.
- type="i"
- Roman numerals
- type="a"
- Letter
- type="1"
- Numbers
- type="I"
- Capital Roman numerals
- type="A"
- Capital Letter
Another useful command start="x" This allows the list to be started ar a number other than 1. Although it can be applied to any type it has to be stated as a number. Also some browsers don't use this. So don't rely on it.
- <OL start="10">
- and we continue form there
- <OL start="10" type="i">
- and we continue form there
- <OL start="10"type="a">
- and we continue form there
These are lists where the bits are "bulleted" in some way.
<UL>
<LI>1st part of the list </LI></UL>Looks like
<LI>2nd part of the list </LI>
- 1st part of the list
- 2nd part of the list
There are number of formats which are defined using a <UL type="i"> command.
- type=square
- type=circle
- type=disc
Mainly used for glossaries etc actually these lists can be very versatile. The format is;
<DL>
<DT> the term </DT></DL>
<DD>What it means </DD>
- The term
- What it means
All that has been nice and straight forward hasn't it.
Brace yourself...
Tables are used to give structure to a page. Many web page builders over use them. (Personal opinion only). However they are very useful so here we go....The table tags...
- <table>
- Says start a table here. There are loads of things you can put in here. Some are similar to the image tags e.g. Border="" width="" (Though this is usual set as a % of the window). Others are more like the Body tag, e.g. bgcolor=#000000 (which is how I did the bits on the colours page if you don't believe me go and have a look.)
- <TR>
- Table return.. it says to the browser start a new line.
- <TH>
- Table Heading.. these cells are automatically centered and bold text. They too can have different background colours and widths etc.
They can also streatch across more than one cell.. colspan=x or rowspan=y- </Th>
- The end of the heading cell
- <TD>
- Table division.. the normal cells, usually left justified and in normal text. Different background colours widths and colspan/ rowspan apply here too.
- </TD>
- - The end of the normal cell
Ok there are other tags such as captions, headers and footers but they get complex.
So lets put that together in a simple table...
<table width=95% border=1>
<tr><th>Row 1 - Column 1 </th></tr>
<th>Column 2 </th>
<th width=50%>Column 3 </th>
<tr><td bgcolor=#99FF00> Row 2 </td></tr>
<td colspan=2> and anything could go in here including another table </td>
<tr><td>Row 3</td></tr>
<td>or even an image</td>
<td rowspan=2><img src="boo.gif" width="80" height="80" alt="example image" border="0"></td>
<TR><TD>Row 4</td></TR>
<TH>You can put headings anywhere</th>
</table>Which looks like..
Row 1 - Column 1 Column 2 Column 3 Row 2 and anything could go in here including another table Row 3 or even an image Row 4 You can put headings anywhere
So armed with these basic instructions you should be able to make your first page.
Don't be afraid to experiments as it is almost impossible to do damage to your machine viewing a HTML file THIS IS NOT A CHALLENGE Worst thing you could do is hang up your browser. And you might just come up with something really interesting.;)
Good luck and have fun...
From all at aria.uk.com