Foreground Color

Say goodbye to <font color=> forever. You can pitch the text, link, vlink, and alink attributes for the body element while you’re at it.

The color property is used to describe the text (a.k.a. “foreground”) color of an element. The foreground color is also used for an element’s border unless it is specifically overridden with a border color rule.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.