Name
BACKGROUND — NN all IE all HTML 3.2
Synopsis
BACKGROUND=”URL"Optional
Specifies an image file that is used as a backdrop to the text and other content of the page. Unlike normal images that get loaded into browser content, a background image loads in its original size (without scaling) and tiles to fill the available document space in the browser window or frame. Smaller images usually download faster but are obviously repeated more often in the background. Animated GIFs are also allowable but very distracting to the reader. When selecting a background image, be sure it is very muted in comparison to the main content so that the content stands out clearly. Background images, if used at all, should be extremely subtle.
This attribute is deprecated in HTML 4.0 in favor of the
background style attribute.
Example
<BODY BACKGROUND="watermark.jpg">...</BODY>
Value
Any valid URL to an image file, including complete and relative URLs.
Default
None.
Object Model Reference
- IE
[window.]document.body.background
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access