On 27/10/05, matt andrews <[EMAIL PROTECTED]> wrote:

> 1. add a DOCTYPE to the very top of your HTML document, like this:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

I'd strongly advise against using XHTML (which has a large number of
gotchas) and Transitional (which includes large numbers of elements
and attributes that should not be used, and only a couple which might
be useful ... and then only very rarely).

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd";>

... is almost certainly a better bet.

Once you specify a Doctype, authors should make use of
http://validator.w3.org/ to check that their document conforms to the
spec (at least as far as it can - the DTD can't express the entire
spec, but that doesn't stop the validator being a useful tool. (Any
more then a spell checker isn't useful if it can't tell you you've
used "their" when the correct word was "there").

--
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to