background (Body element)

Jump to: navigation, search

background (Body element)

This article is Not Ready.



Summary

Specifies a background image for a document. This attribute is deprecated in HTML4 and not supported in HTML5. Use CSS.


Applies to  ?

Needs Examples: This section should include examples.

Notes

Remarks

This property is deprecated in favor of the background-image attribute of CSS. Windows Internet Explorer 8 or later. In IE8 Standards mode, the value of the background attribute depends on the context of the reference to the attribute. When read as a Document Object Model (DOM) attribute, background returns an absolute URL. The value specified by the page author is returned when background is read as a content attribute, when the page is displayed in an earlier document compatibility mode, or when the page is viewed with an earlier version of the browser. For more information, see Attribute Differences in Internet Explorer 8.

Syntax

Standards information

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related pages (MSDN)

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]