Quote:
A document type definition DTD is, simply said, a set of grammar rules for a parser, that parses your HTML-file.
The HTML standard predefines some DTDs. Look at the standard, to know where those DTDs are located. But you may provide your own DTD as well. If your documents can be parsed by those rules, it matches this DTD. So to be standard compliant, you need to match one of the standard DTDs.
Yeah, I'd figured that bit out from the validation page. Just not sure why the formatting change is happening when I add the DTD. Presumably it's because it's being interpreted in a different way, but then why is it working without the specification? For example, if I specify v3.2, it formats exactly how I want it, but when you try and validate it it doesn't like the <div class="whatever"> lines - presumably because this wasn't valid syntax under 3.2. Then again, maybe I'm just doing my CSS wrong.
Quote:
The 'no character encoding' issue means, that you didn't tell the parser (i.e. your browser), which encoding you used for this document. You should add a line specifying that this document is in UTF-8 encoding, for instance. See the standard for details about that.
Yeah, I'd just about got my head around that. Of course, I still have no idea what the options are, but UTF8 seems pretty standard.
Thanks for the comments,
Jim.
Edit : Think I've solved it - changing all the widths to auto seems to work - unlike before.
The crazy, crazy world of HTML.
[Edited by - JimPrice on May 25, 2005 9:21:42 PM]