Which CSS property is used to change the text color of an element?
- color
- font-color
- style-color
- text-color
The correct CSS property to change the text color of an element is 'color.' It allows you to specify the desired color using various formats like named colors, hexadecimal, or RGB values.
Loading...
Related Quiz
- Which CSS pseudo-class would allow you to target only the last list item in an unordered list?
- What effect does the animation-timing-function value of steps(4, end) have on an animation?
- When using SVGs in CSS, how can you change the color of the SVG on hover?
- When implementing BEM, what symbol is typically used to separate a block from its element?
- Which CSS unit is fixed and is not affected by the current font size of the document?