Copyright © tutorialspoint.com

CSS - background

previous next


Description:

background is a shorthand element used to set background styles for an element.

Possible Values:

background is a shorthand property and stand for the following. This value will vary depending on actual property.

Applies to:

All the HTML elements.

DOM Syntax:

object.style.background="Value according to the used propery";

Example:

<p style="background:url(/images/pattern1.gif) repeat fixed;">
This parapgraph has fixed repeated background image.
</p>

To Become more comfortable - Do Online Practice


previous next

Copyright © tutorialspoint.com