182k views
4 votes
Assume that this code is linked together correctly. p{ color: red; padding:10px 5px; background: black; } .fancy{ font-family: cursive; background: red; color: green; } .plain{ font-family: Times, serif; color: black; } What color font is used to display "Hi"?

Hi



User Ori
by
6.9k points

1 Answer

7 votes

Final answer:

The font color used to display 'Hi' is green.

Step-by-step explanation:

The color font used to display 'Hi' is green. The font color is determined by the 'color' property in the CSS rules. In this case, the 'color' property is set to 'green' for the '.fancy' class. Since the 'Hi' text is wrapped in a span with the '.fancy' class, the font color will be green.

User Ghbarratt
by
7.0k points