Colour and the body tagYou may be confused so here are some step by step instructions: 1.) Note the red, green and blue components of your colour. 2.) Convert each of these to hexadecimal notation. 3.) Create the code with a hash and the three values. And now an example: You may be having problems with understanding how to convert a decimal number to hexadecimal. For this reason I have created a program that will do the work for you. All you have to do is download this program and whenever you need to convert decimal to hexadecimal it will do the work for you. It can be downloaded at http://www.geocities.com/~letslearnhtml/... The <body>tag I covered the body tag in my first article but didn't cover all of its attributes (I discussed attributed in my second article). Basically what I will now do is provide a list of attributes of the tag and a brief description of what each of them does.Attributes
Bgcolor: Sets the background colour of the page, you should use one of the pre-defined colours or your personalised colour in hexadecimal notation.
Text: Sets the default colour of the text on the page, you should use one of the pre-defined colours or your own personalised colour in hexadecimal notation. Link: Sets the colour of links on the page, you should use one of the pre-defined colours or your own personalised colour in hexadecimal notation. You will learn more about links in the next article. Vlink: Sets the colour of visited links on the page, you should use one of the pre-defined colours or your own personalised colour in hexadecimal notation. Alink: Sets the colour of active links on the page, you should use one of the pre-defined colours or your own personalised colour in hexadecimal notation. Background: Sets a background image. This image if smaller than the window will tile to fill the entire background. You must specify a file name of a gif or jpg image. Topmargin: Sets the amount of space to leave at the top of the page before the text, image etc. are displayed. You must specify the size in pixels. Only works with Internet Explorer. Leftmargin: Sets the amount of space to leave at the left of the page before the text, image etc. are displayed. You must specify the size in pixels. Only works with Internet Explorer.
The copyright of the article Colour and the body tag in HTML Lessons is owned by Oisin Prendiville. Permission to republish Colour and the body tag in print or online must be granted by the author in writing.
Articles in this Topic
Discussions in this Topic
|