www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons The Body Tag Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
The <body> and </body> tags of an HTML web page contain all the stuff that is displayed in a browser. We can control the appearance of a web page by using different attributes of the <body> tag.

Setting Background Color:

The default background color of a web page is white. We can change the default background color by using the bgcolor attribute of the <body> tag.

<body bgcolor="gray">

The above HTML code will set the background color to gray. You can either specify the color name or RGB hexa value of the color. A list of common colors is available here.

Setting Background image:

You can set the background image of a web page as under:

<body background="logo.jpg">

The background attribute of the <body> tag specifies the location of the image file to be displayed in the background of the web page. It takes an absolute or a relative path of the image file. A discussion of absolute and relative paths will come in a later lesson.
Next >>> Lesson No. 8: HTML Headings

Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.