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

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.