background-image: url(***);

  • IE
  • Cr
  • Sf
  • Fx
  • O

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

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

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

The default is "none".


<title>TAG index</title>

<style type="text/css">

div {
width: 70%;
height: 200px;
background-color: #ffffff;
background-image: url(image/back.gif);
color: red;



<div>The background image example</div>


The background image example

Background Image back.gif