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

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

new
Painting
Heart Disease
Horror Literature
Dating
Hiking & Backpacking
SF/Fantasy Books
Healthy Foods


dailyclick
All times in EST

Full Schedule
g
g HTML Site

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"



This site needs an editor - click to learn more!

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




RSS | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


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


Content copyright © 2013 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 BellaOnline Administration for details.

g


g features
What's Coming in HTML 5

What is FTP?

HTML Fundamentals - Tables

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


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


BellaOnline Editor