Sunday 31 March 2013

HTML tutorial: Attributes Body tag


 Add background color to your website:- bgcolor attribute.

This attribute(as the name suggests) adds background colour to your website.

Note:

you can use hex-color codes for the colours also.
< BODY bgcolor="red">

Add background image to your website:- background tag.
This attribute lets you to add a background colour to your website
< BODY background="the path to your image file.jpg/png">

Note:

It is necessary to add the extension of your image file and the you have to write the complete source/destination of it.

Change the colour of the whole text present in your website:- Text attribute.

This attribute lets you change the colour of the entire text present on the webpage.
< BODY text="red">

Change the colour of the links :- The link attribute

This is the main tag in html where you place the main content of your website with the formatted tags and other ones. 
So this will change the colour of the link to blue.


HTML provides an advantage the colour of the links visited and the link which is active.
Here are the attributes:-
Active link: alink="yellow"
Visited link: vlink="red"

No comments:

Post a Comment