126k views
1 vote
What command would you use to change the background color to blue?

1) background-color: blue;
2) color: blue;
3) text-color: blue;
4) font-color: blue;

1 Answer

3 votes

Final answer:

To change the background color to blue on a webpage, use the CSS command 'background-color: blue;'. Options like 'color: blue;' alter text color, not background, and 'text-color' and 'font-color' are not valid CSS properties.

Step-by-step explanation:

If you want to change the background color to blue in a webpage, the correct command to use is: background-color: blue;. This property is used in CSS (Cascading Style Sheets) to specify the background color of an element. The other options such as color: blue;, text-color: blue;, and font-color: blue; do not change the background color. Color: blue; is used to change the text color, while text-color and font-color are not valid CSS properties.

User Anis KCHAOU
by
7.8k points

No related questions found