HTML body bgcolor Attribute
HTML <body> tag
Definition and Usage
The bgcolor attribute specifies the background color of the page.
Compatibility Notes
The bgcolor attribute of the body element was deprecated in HTML 4.01
and is not supported in XHTML 1.0 Strict DTD.
Use CSS instead.
CSS syntax: <body style="background-color: #1E90FF">
In our CSS tutorial you can find more details about the
background-color property.
Syntax
<body bgcolor="color_value">
|
Syntax Example
Attribute Values
Value |
Description |
color_name |
Specifies the background color with a color name, like "red" |
RGB_value |
Specifies the background color with a RGB value, like "rgb(255,0,0)" |
Hex_value |
Specifies the background color with a hex value, like "#ff0000" |
Browser Support
The attribute is supported in all major browsers.
Example
<html>
<body bgcolor="#00BFFF">
<p>Hello World!</p>
</body>
</html>
|
Try-It-Yourself Demos
body
bgcolor attribute example
Set the background color with the body bgcolor attribute.
In CSS: background-color example
Set the background color with CSS.
HTML <body> tag
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|