logo
g Text Version
Auto
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Society & Culture
Sports
Travel & Leisure
TV & Movies

dailyclick
Bored? Games!
Postcards
Astrology
Take a Quiz
Rate My Photo

new
Jokes & Riddles
Astronomy
Philosophy
Public Health
Canadian Culture


dailyclick
All times in EST

Tatting: 13:00 PM

Full Schedule
g
g HTML Site
Elizabeth Connick
BellaOnline's HTML Editor

g

How To Set The Colors On A Webpage - The Body Tag Attributes
Guest Author - Diane Cipollo

You can set the color of the background, links and text on your webpage with the body tag attributes.

  • Bgcolor Attribute
    To set the background color for a webpage use the code below and replace the ffffff with the HTML color code for the color you wish to use. Place the code segment inside the opening <body> tag on your webpage.
    bgcolor="#ffffff"


  • Background Attribute
    To use an image as the background of a webpage use the code below and replace the image.gif with the name of the image you wish to use. If the image is in a subfolder, put the name of the subfolder before the name of the image and separate them with a /.

    folder/image.gif

    Place the code segment inside the opening <body> tag on your webpage.
    background="image.gif"



  • Text Attribute
    To set the color for the text on a webpage use the code below and replace the 000000 with the HTML color code for the color you wish to use. Place the code segment inside the opening <body> tag on your webpage.
    text="#000000"


  • Link Attribute
    To set the color for the links on a webpage use the code below and replace the 000000 with the HTML color code for the color you wish to use. Place the code segment inside the opening <body> tag on your webpage.
    link="#000000"


  • Alink Attribute
    To set the color for the active (clicked on) links on a webpage use the code below and replace the 000000 with the HTML color code for the color you wish to use. Place the code segment inside the opening <body> tag on your webpage.
    alink="#000000"


  • Vlink Attribute
    To set the color for a visited link (a link already used) on a webpage use the code below and replace the 000000 with the HTML color code for the color you wish to use. Place the code segment inside the opening <body> tag on your webpage.
    vlink="#000000"




RSS | Previous Features | Site Map


Content copyright © 2008 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Elizabeth Connick for details.

Digg! g delicious Save to Del.icio.us

g


For FREE email updates, subscribe to the HTML Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor

g features
Finding Images for Your Website

How To Set Up a Mailto Link

Using CSS to Set a Background Image

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Driving Amount
Much more
Slightly more
Slightly less
Much less

g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2008 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor