Computer Science, asked by adwaithnambiar19, 1 day ago

List all the different background properties available in HTML and explain any three in detail with its syntax.

Answers

Answered by shauryagupta116972
0

Answer:

4 bacgrounfd

Explanation:

Answered by ameyasgupta
1

The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.

The background property is a shorthand property for:

background-color

background-image

background-position

background-size

background-repeat

background-origin

background-clip

background-attachment

background: bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;

Note: If one of the properties in the shorthand declaration is the bg-size property, you must use a / (slash) to separate it from the bg-position property, e.g. background:url(smiley.gif) 10px 20px/50px 50px; will result in a background image, positioned 10 pixels from the left, 20 pixels from the top, and the size of the image will be 50 pixels wide and 50 pixels high.

Note: If using multiple background-image sources but also want a background-color, the background-color parameter needs to be last in the list.

Similar questions