Computer Science, asked by RehanAhmadXLX, 1 year ago

Background-color allows setting background image color of an element. Which of the following values you can pass with this propeny?

A) color-rgb

B) color-hex

C) color-name

D) All of these

E) None of these

Explanation is must..

Answers

Answered by Anonymous
3
Assuming that this ques is related to CSS

As property name suggests, it is used for applying background-color. That answer is d) All of these

now explanation

css support s all of the mentioned color property i can give you example of every property

example of color-rgb
. element {
background-color: rgb(255, 0, 0);
}

example of color-hex
. element {
background-color: #ff0000;
}
example of color-name
. element {
background-color: red;
}

hope it will help you :)




Answered by Anonymous
3
color-hex
----------------------------------------------------------------------------------------------------------------

color-hex can pass with this propeny.

________________________________________________________

HTML

<body style="background-
color:#FF0000;">
</body>







________________________________________________________

Background color using HTML color names
For this just replace the HEX code with one of the 140 supported color names and you're good to go.


Ex :-

<body style="background
-color:white;">
</body>












----------------------------------------------------------------------------------------------------------------





USING RGB

=========
HTML

<body style="background-
color:rgb
(255,0,0);">
</body>





Similar questions