Ryan's District
September 07, 2008, 10:30:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length

There are currently users in chat
News: You are not allowed to view links.
Register or Login
How to Unlock Nokia mobile Phones

You are not allowed to view links.
Register or Login
Request any TV Show / series / Episodes / movie and we will get it for you for free

 
   Home   Help Search Chat Calendar Chess Shop Login Register  
Digg This!
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: HTML - The <BODY> tag attributes  (Read 958 times)
0 Members and 1 Guest are viewing this topic.
ben2ong2
Quality Poster
Paid
Hero Member
*****

Reputation: 17
Offline Offline

Gender: Male
Posts: 2374
9976.80 RD$

View Inventory
Send Money to ben2ong2

View Profile Awards
« on: October 03, 2006, 05:11:56 PM »

This session looks at some important attributes of the <BODY> tag. These attributes control the properties of the document as a whole. Some of these properties are:

TEXT: specifies color of normal text in a page
LINK: determines link color
VLINK: determines color of link that has been visited
ALINK: specifies color of link when clicked
BGCOLOR: controls the background color of the document
BACKGROUND: enables us to use an image as background for the page.

The first five take hexadecimal color code or color name as their value. The last takes the URL of the image to be used.



TEXT
The color of text which is not surrounded by <A> tags is specified by this attribute. The default is black (hexadecimal code #000000).

LINK
Link color should be different from normal text color so that visitor recognizes it from its display. The default color is blue (#0000FF).

VLINK
It is good HTML practice to use a different color for visited links. This informs the visitor that the page/site has already been seen.

ALINK
This attribute specifies a color that is displayed as long as the mouse button is held pressed. On release of the mouse button, the link color will be changed to VLINK color. Since a mouse click takes almost an instant to play, this color is shown only momentarily.

BGCOLOR
Determines the background color of the document. The default is white (#FFFFFF) and you can change it to any color you want. Be sure to test this, because many a web developer has been guilty of using background colors that make it difficult to read foreground text.

BACKGROUND
Takes a URL of an image as value and puts this image as the background. Background images are tiled by browsers.

<BODY TEXT="white" LINK="red" VLINK="yellow" ALINK="green"
BGCOLOR="black">
The above code yields a page with a black background, white text, links colored red, visited links with yellow and active links green. (not a pretty sight, huh?).

The BACKGROUND attribute when used, overrides the BGCOLOR attribute. Thus, in this case, the image will form the background of the page and the background color will be ignored. If however, the image is not found, the color in BGCOLOR



Logged

You are not allowed to view links.
Register or Login
Free Paid Survey & Home Business Resources.

You are not allowed to view links.
Register or Login
Free Article Directory | Quality Content
Ryan's District
   

 Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Archive - WAP2 - WAP - imode
Sponsors: TOP SEO Directory - Online Job Maker - List of Advertisers - BIG VENUE

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.189 seconds with 28 queries.

Google visited last this page September 03, 2008, 04:08:25 AM