<html>
<head>
</head>
<body>
<div style="background:blue url(http://www.java2s.com/style/logo.png) repeat top left;
width:200;
border:3;
height:150; font-size:14">
background properties in a single line.
</div>
<br><br><br><br><br><br><br><br><br>
<div style="background-color:red;
background-attachment:fixed;
background-image:url(http://www.java2s.com/style/logo.png);
background-repeat:repeat;
background-position-x:top;
background-position-y:left;
width:200;
border:3;
height:150;
font-size:14">
background properties are not set in a single line, which is more readable
and easy to change.
</div>
</body>
</html>