[thelist] Which HTML (W3C validator)

Joshua Olson joshua at alphashop.net
Thu Mar 14 10:08:01 CST 2002

----- Original Message -----
From: "Luther, Ron" <Ron.Luther at COMPAQ.com>
Subject: RE: [thelist] Which HTML (W3C validator)

> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> <title>Title Stuff</title>
> <style type="text/css">
> body {background-color = "000000"}
> div {text-align: "center"}
> h1 {color = "70A7C2"}
> p {color = "70A7C2"}
> </style>
> </head>

One other note.  To pass validation for the latest CSS DTD, you also may
want to add "color" for every element that defines "background-color".

For example

<style type="text/css">
  body {background-color: #000000; color: #FFFFFF; }
  div {text-align: center}
  h1 {color: #70A7C2; background-color: #000000}
  p {color: #70A7C2; background-color: #000000}

It doesn't throw an error, but I seem to remember it throwing a warning.

More information about the thelist mailing list