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
Journals
Folklore and Mythology
Business Coach
Marriage
Senior Living
Ethnic Beauty
Adolescence


dailyclick
All times in EST

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

Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to Twitter Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to Facebook Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to MySpace Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to Del.icio.us Digg How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to Yahoo My Web Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to Google Bookmarks Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to Stumbleupon Add How+To+Set+The+Colors+On+A+Webpage+%2D+The+Body+Tag+Attributes to Reddit


Content copyright © 2009 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.

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
What's Coming in HTML 5

What is FTP?

HTML Fundamentals - Tables

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter

jobs
what
job title, keywords
where
city, state or zip
jobs by job search


vote
Growing a Garden
Veggies and Flowers
Veggies Only
Flowers Only
No Garden

g


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


BellaOnline Editor