<body>
and
<font color>
commands. For example,
<body bgcolor="ffffd8" text="000000" link="0000ff" vlink="ff0000" alink="00a000">
is used for this page, ie. a cream background, black text, blue unvisted links, red visited links and green active links.
<font color="00a000">green</font>
will produce green text (but currently only in Netscape 2).
In all cases, the colours are described using a six digit red-green-blue (RGB) hexidecimal code.
This is slightly easier than it sounds.
The first two digits represent the red portion of the colour, the second two for green and the last two for red. The valid range for each colour is from 00 (dark) to FF (light).
For instance, here are some common colours in hex form:
Colour R G B Red: ff0000 Green: 00ff00 Blue: 0000ff Magenta: ff00ff Purple: 9900dd Light Gray: bbbbbbIf there is a colour, in a graphic say, and you wish to know its RGB constituents you can use a package such as the excellent Paintshop Pro to determine the split. The colour fractions will be given in decimal rather than hexidecimal. This means the colours will range from 0 to 255 rather than 00 to FF; use a scientific calculator to convert or check out my hex to decimal conversion chart which should also help you to count in hexidecimal if you're not sure how to.
With Netscape 2 and hopefully soon other browsers, you can describe colours in terms of a name, ie. "red" instead of "FF0000". A complete colour chart is available, telling you available colour names and their associated hex code.
It is also possible to trigger a sound file to automatically play when a page is loaded. This is done by use of the Replace An alternative method is to use the command
Meanwhile, here are some examples.
Incidentally, a non-breaking space can be quite useful as it enables you to insert a space-character anywhere and as many times as you want. Bare in mind that there are better ways than this for spacing and aligning text.
<a href="SOUNDS/BLAKMEAT.WAV">
<img src="GRAPHICS/SOUND.GIF" border=off width=36 height=28 alt="sound button">
"I think it's time for you boys..." [64K]</A>
"I think it's time for you boys..." [64K]
<meta>
element. Include the following line of code in the <head>
section of your document.
<meta http-equiv="refresh" content="1; url=sounds/flesh.wav">
sounds/flesh.wav
with the address of your own sound file. Click here for an example. For those with the Microsoft Internet Explorer browser, this procedure is simplified with use of the <bgsound>
element.
<TABLE WIDTH=100%>
<TR><TD WIDTH=50%>
Left hand column text in here.
<TD WIDTH=50%>
Right hand column text in here.
</TABLE>
Remember, the left hand column will not wrap into the right hand column as with normal word processors; you must specify the columns' text separately.
<pre>
. This uses a fixed-width font to display the text, and also shows all space-characters typed in the HTML code; thus facilitating the alignment of text.
&
) and a semi-colon (;
). For instance, to display the symbol <, you need to write the code &lt;
. A full list of available symbols is available here.
< <
> >
& &
æ æ
© ©
non-breaking space