| Home - Books - Reviews - Tutorials - Software - Download - Orders - Newsletter | |||||||||||||||||||||||
| Subscribe here for our free email newsletter - monthly updates |
Custom Search
|
||||||||||||||||||||||
HTML - adding colour1. The default background colour of a web page is grey - which is not very exciting. 2. That is, grey is the colour which will show in a browser window unless you tell it to do otherwise.
4. There are three easy ways to add colour to your pages:
The FONT COLOR tag 6. When you specify the FACE or SIZE of your FONT, you can also say what COLOR you want it to be.
This would produce the following effect. The words 'my web pages' are coloured red. 7. Other common colours (here used as background) are as follows. [Notice that we've used <FONT COLOR=WHITE> to provide contrast against the darker colours.
BACKGROUND COLOR 8. Background colour can be used to give colour to a page or to parts of a table [as we have just seen above]. 9. The code is inserted into the <BODY> tag at the top of your page. Notice that the term 'background' is abbreviated to BG.
10. It is better to choose something more quiet and restrained.
BGCOLOR="#FFFFEF" is more subtle. [Don't ask! Just use "#FFFFEF".] 11. You can also add background colour to the data cell in a TABLE.
<TR> <TD BGCOLOR=LIME> some text </TD> <TD BGCOLOR=YELLOW> some text </TD> <TD BGCOLOR=FUCHSIA> some text </TD> </TR> </TABLE>
Tiled graphic file 13. You can also create a coloured background for your page by using a graphic image. This will be 'tiled' [repeated to fill the space] by your web browser. 14. The code goes into the BODY tag at the head of your page. Notice that in this case the full term BACKGROUND is used.
15. You would save the graphic file 'stripe.gif' in the same folder as your .htm page. The effect would be as follows:
16. It's usually much better to use a single colour - one which is muted and subtle. Choose something against which black text will stand out clearly.
|
|||||||||||||||||||||||
| Home - Books - Reviews - Tutorials - Software - Download - Orders - Newsletter | |||||||||||||||||||||||
|
Mantex - PO Box 100 - Manchester M20 6GZ - UK Tel: +44 0161 432 5811 — Email: info@mantex.co.uk Copyright © Mantex 2000—2007 |