asp.net.ph

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

BACKGROUND Attribute | background Property


Sets or retrieves the image used as the background for the document BODY.

Syntax

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

Possible Values

strUrl String specifying the URL of the file to be used as 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.

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

Applies To

BODY



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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