HOME
TOEFL
  • What is TOEFL
  • What is iBT
  • What is PBT
  • Registration
IELTS
  • What is IELTS
  • Who Manage IELTS
  • IELTS Listening
  • General Reading
  • General Writing Task 1
  • General Writing Task 2
  • IELTS Grammar
  • Punctuation
    • Comma
    • Semicolon
    • Period
    • Hyphen
    • Exclamation
    • Colon
    • Capital Letters
    • Brackets
    • Apostrophe
    • Question
PHP
  • What is PHP
  • Basics
  • Condational Statements
  • Date
  • Cookies
  • Sessions
  • Array
  • Functions
  • Loops
  • Variables
  • Operators
  • MYSQL Connection
  • Create DB
  • Selcet Statement
  • Where Statement
  • Insert Statement
  • Update Statement
  • Error Handling
  • File Handling
  • Exception Handling
  • Form Handling
  • Upload
CSS
  • What is CSS
  • Type of CSS
  • Apply Css
  • Background Image
  • Background Color
  • Borders
  • Boxes
  • Browsers Compatibility Issue
  • Cascading order
  • How to insert CSS
  • List Property
  • Margin
  • Multiple Style Sheets
  • Padding
  • Table
  • Text CSS

Background Color

The background-color property specifies the background color of an element.

body {background-color:#b0c4de;}

The background color can be specified by:
  • name - a color name, like "red"
  • RGB - an RGB value, like "rgb(255,0,0)"
  • Hex - a hex value, like "#ff0000"

Example

h1 {background-color:#6495ed;}

p {background-color:#e0ffff;}

div {background-color:#b0c4de;}