simple question - doctype

Discussion in 'Web Design and Development' started by isculpt, Oct 8, 2007.

  1. isculpt macrumors member

    Dec 7, 2005
    I just recreated my website, with the help of my wonderful husband. It has been up for a few months and we finally worked through some problems. However, I just noticed that when looking at the code of my pages there is no doctype code in there. now I am not really sure what doc type is even though I have looked up its meaning. Nor would I know how to create the correct doc type to put it in —if I could figure it out, or if the same doc code goes on all pages, like blog and forum. I also don't understand why Dreamweaver did not put it in? Also what should I do now , or is it needed?

    YOu guys are always so helpful.
  2. angelwatt Moderator emeritus


    Aug 16, 2005
    The simplest one to use is,
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    Check these pages for more details,
    And from ALA,

    If you have a link to the site we could check it out and advise you further if you can't figure it out on your own. Your pages will generally still work fine without the DOCTYPE, but it is good practice to have them in.

    Edit: OK, I didn't see that your site was listed there in the post. It doesn't look like the page validates under any of the DOCTYPES, but many many pages on the web don't. If validation is important to you, you should figure out which one you want to try for then use the validator ( to see what problems are there and keep at it until it validates.
  3. isculpt thread starter macrumors member

    Dec 7, 2005
    thanks some more questions.

    this is helpful and I have been to validate it, but frankly I don't know what any of the items mean. 42 errors? How can I work through all of that. If I copy what was in the former post and put it on my web page will I do any damage? God forbid something should break. Is it the correct thing to put on

Share This Page