HTML CSS Reference/CSS Attributes and Javascript Style Properties/background
"background" Example
<html>
<head>
</head>
<body>
<div style="background:blue url(http://www.wbex.ru/style/logo.png) repeat top left;
width:200;
border:3;
height:150; font-size:14">www.wbex.ru</div>
<br><br><br><br><br><br><br><br><br>
<div style="background-color:red;
width:200;
border:3;
height:150;
font-size:14">www.wbex.ru</div>
</body>
</html>
"background" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <address> |
| |<b> <big> |
| |<blockquote> <body> |
| |<button> <caption> |
| |<center> <cite> |
| |<code> <col> |
| |<colgroup> <custom> |
| |<dd> defaults |
| |<dfn> <dir> |
| |<div> <dl> |
| |<dt> <em> |
| |<fieldset> <form> |
| |<hn> <html> |
| |<i> <img> |
| |<inputtype="button"> <input type="checkbox"> |
| |<input type="file"> <input type="image"> |
| |<input type="password"> <input type="radio"> |
| |<input type="reset"> <inputtype="submit"> |
| |<input type="text"> <isindex> |
| |<kbd> <label> |
| |<legend> <li> |
| |<listing> <marquee> |
| |<menu> <nobr> |
| |<ol> <p> |
| |<pre> runtimeStyle |
| |<s> <samp> |
| |<small> <span> |
| |<strike> <strong> |
| |style <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<tr> <tt> |
| |<u> <ul> |
| |<var> <xmp> |
+----------------+--------------------------------------------------------------+
"background" Syntax and Note
Note:
Set background properties.
Syntax:
element { background: values }
elementID.style.background = "values"
document.all.elementID.style.background = "values" // IE only