HTML and CSS Certification Practice Test 2025 – The All-in-One Guide to Master Your Certification!

Image Description

Question: 1 / 400

Which CSS property is used to change the text color?

background-color

font-color

text-color

color

The CSS property used to change the text color is "color." This property directly applies to the text within an element, allowing you to specify a color using various formats such as name, hex, RGB, or HSL. When you use the "color" property, it affects the text within the selected element, enabling clear customization of the visual appearance of the text on your webpage.

In contrast, options like "background-color" target the background of elements, which does not affect the text color itself. "font-color" and "text-color" are not valid CSS properties, as CSS has standardized the use of "color" for this specific purpose. Thus, in the context of changing text color, "color" is unequivocally the correct and recognized property to use.

Get further explanation with Examzify DeepDiveBeta
Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy