|
womble -> RE: doctypes (3/28/2006 10:40:23)
|
Okay, step by step then...(might be an idea to get a book on html, or check out the W3C's specifications for (x)html at some point in this process so you can check out what's allowed and what's not) ....so you paste in your doctype - in your case the HTML 4.01 transitional. quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> It has to go in the code as the very first thing - nothing else goes before it - even the <html> tag. As you've found that will most probably "mess up your page" because the browser's now trying to render your code according to the official rules. Don't worry, that's kinda supposed to happen at this stage! Next step, off you go to the W3C Validator with your newly doctyped page and either type in the url in the appropriate box or upload the page to the validator (or cut 'n' paste your code into the direct input box). Choose the 'verbose' option when asked, and it'll try and explain to you in W3C-speak what the problems are. Next comes the scary bit....click "check" and it'll come up with a whole list of things that are wrong with the code most likely. DON'T PANIC! That's normal. Have a read through what it says, and see if any of it makes any sense, and perhaps try and correct some of the errors it comes up with, then try validating the page again. Problems or anything you don't understand, come back here and give us a shout.
|
|
|
|