Choosing Background and Foreground Colors

Many Web design experts caution against dark or patterned backgrounds on Web pages, because they can make it difficult to read the text. Some designers go so far as to say that you should not use any background color at all, and prefer that black text on a white background be the norm. A quick look at a few major commercial Web sites will confirm the near-universality of this opinion. Check out high-traffic sites like www.msn.com, www.ibm.com, and www.microsoft.com, and you’ll find that the body text is almost exclusively black (or another dark color) on a white (or other pale) background.

Rules are made to be broken, however, and you might find situations in which a colored or patterned background is perfect ...

Get HTML and XHTML Step by Step 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.