Which of the following property is used to change the background in a table?

[amp_mcq option1=”table-background” option2=”background” option3=”color” option4=”none of the mentioned” correct=”option2″]

The correct answer is B. background.

The background property is used to set the background color, image, or repeat of an element. It can be used on any element, including tables.

The table-background property is not a valid CSS property.

The color property is used to set the foreground color of an element. It cannot be used to set the background color of an element.

Therefore, the correct answer is B. background.

Exit mobile version