Categories:
Main Questions
Website Creation
Editing Images
Editing HTML Code
Domain Names
User Registration
Hosting Plans
Making Payments
User Interface
Site Promotion
Affiliate Program
Search: Have a question? Find an answer fast.
(Example: change design)

Back

What are the basics of 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:

<BODY BGCOLOUR="FF0000">
OR
<BODY BGCOLOUR="RED"> 

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

<BODY TEXT="#FFFF80">

OR

<BODY TEXT="YELLOW"> 

Your code should look like this:

<HTML>
<HEAD>
<TITLE>HTML Tutorial</TITLE>
</HEAD>
<BODY BGCOLOUR="FF0000" TEXT="#008000">
Enter the text you want displayed
</BODY>
</HTML>
Copyright © 2003, Artvertex, Inc. All design templates are ownership of Artvertex, Inc.