asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > BACKGROUND Attribute

background Attribute


Specifies the image used as the background for the document BODY.

Applies To: BODY

Syntax

Inline <body background = strUrl...>
Script body.background = strUrl

Possible Values

strUrl String specifying the URL of the background picture for the page.

The property is read/write with no default value.

Remarks

The image is usually tiled to fit behind the content on the page.

NOTE: This attribute has been deprecated in favor of the CSS background-image property.

Applies To

BODY


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note