How do you change the background colour of a web page?

  • Home How do you change the background colour of a web page?
How do you change the background colour of a web page?

How do you change the background colour of a web page?

July 6, 2009

Question:
How do you change the background colour of a web page?

Answer:
There are two methods for setting the background colour of a web page.

1) In the body tag.

Example:
<body bgcolor="red">

2) In the cascading style sheets or css.

Example:
<style type="text/css">
<!--

body {
background-color: red;
}
-->
</style>

About the Author
Rich Agnew is an author for The Computer Geek Custom Web Page Design. The Computer Geek is a web design company that prides itself in professional service at a fraction of the cost. The Computer Geek specializes in Custom Web Design, PHP & MySql and Ecommerce

To Make a Request For Further Information

5K

Happy Clients

12,800+

Cups Of Coffee

5K

Finished Projects

72+

Awards
TESTIMONIALS

What Our Clients
Are Saying About Us

Get a
Free Consultation


LATEST ARTICLES

See Our Latest
Blog Posts

The Gig Economy: Innovation or Exploitation of Workers?
September 15, 2025

The Gig Economy: Innovati

Why Your Washer Smells and How to Fix It Fast
September 14, 2025

Why Your Washer Smells an

Should We Get Paid for Our Digital Footprints?
September 14, 2025

Should We Get Paid for Ou

Intuit Mailchimp