Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




Reference number: CH000067

Defining the background and text color.

Issue:

Defining the background and text color.

Solution:

Defining the background and page color properties are defined in the BODY statement as illustrated below.

<BODY TEXT="#092d07" LINK="#1FOOFF" VLINK= "#000000" ALINK="#000000" BGCOLOR="#ffffff">

TEXT= The color of text.
LINK = The color of links.
VLINK = Visited link color.
ALINK = Color of the active link, or the link being clicked on.
BGCOLOR = The page background color.

The numbers shown above are the colors values in HEX. To find a listing of available hex codes you can visit:

http://www.computerhope.com/htmcolor.htm

Newer browsers also support the availability of defining the name of the color instead of the HEX value.

<BODY TEXT="black" LINK="blue" BGCOLOR="white">

However, with older browsers, these names of colors can be misrepresented and your page may not be shown properly.

 

 

Index

Category:
HTML Q&A

Companies:
None

Related Pages:
HTML Help

 

Resolved

Were you able to locate the answer to your questions?

 

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope