Which CSS property is used to change the background color of an element?
- background
- background-color
- color
- text-color
The CSS property used to change the background color of an element is background-color. This property specifies the background color of an element and can be set using color names, HEX codes, RGB values, or RGBA values, allowing for a wide range of color customization.
Loading...
Related Quiz
- What is the difference between deadlock prevention and deadlock avoidance?
- In a distributed system, you need to efficiently search for a particular value across multiple sorted arrays. How would you approach this problem?
- The Agile principle of "delivering working software frequently" is best supported by the practice of _________.
- What is React.js primarily used for in web development?
- In a banking application, you need to implement a SQL query to calculate the total balance for each customer across multiple accounts. How would you approach this problem using SQL?