Categories:
Main Questions
Website Creation
Editing Images
Editing HTML Code
User Registration
Administrator Interface
Website Promotion
Search: Have a question? Find an answer fast.
(Example: change design)

Back

Can I control colors for my website using HTML?

The BODY TAG controls a lot of what your web page will look like (back ground color, text color and so on...) There are two ways to specify colors within your web page: Using hexadecimal codes or simply the color name. There are 140 defined color names available. Some color examples are:

HEXADECIMAL:
#FF00BB = pink
#000080 = blue
#FF0000 = red
#FFFF00 = yellow
COLOUR NAMES:
RED
BLUE
GREEN
PURPLE

To add color to your web page, simple modify the BODY TAG information in your existing document. To change the back ground color we use the attribute BGCOLOUR within the BODY TAG: For example, let’s say you wanted your web page to have a RED background color. You would add this line of code to the BODY TAG:


OR
 

To change the text color from the default black to yellow, you must add a new line of code to the same BODY TAG:


OR

 

Your code should look like this:



	
HTML Tutorial


Enter the text you want displayed


Useful Resources

Website Builder
Website Templates
Web Templates Customization
Affiliate Program
Web Design Library
Adult Website Templates
Flash Templates
Corporate Identity
PHP-Nuke Themes
Webtemplates
Flash Templates Online
DDoS Protection
Hosting Templates