background-image: url(***);

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O

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

Applying this property to the BODY element applies the specified style to background of an entire page.


body {
background-image: url(image/back.gif);
}

Property Value Explanation
background-image url(URL) the URL of the image to display

The default is "none".

Example


<html>
<head>
<title>TAG index</title>

<style type="text/css">

body {
background-color: #ffffff;
background-image: url(image/back.gif);
color: #000000;
}

</style>

</head>
<body>



</body>
</html>

Output
Background Image back.gif
Example pagenew window