What property controls the font color in CSS?

Prepare for the CodeHS Advanced HTML and CSS Test. Leverage comprehensive questions with detailed explanations and hints. Ace your exam with tailored practice!

The property that controls the font color in CSS is the color property. When applied, this property allows you to set the specific color of the text for an element. You can define the color using various formats, including keyword names (like "red" or "blue"), hexadecimal values (like "#ff0000" for red), RGB values (like "rgb(255, 0, 0)"), and more.

This property directly influences how text appears on a webpage, making it essential for aesthetics and readability. Understanding the use of the color property is crucial for web design, ensuring that text is visually appealing and accessible against different backgrounds. The other options mentioned do not exist in CSS for color specification; thus, they cannot be used to define the font color.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy