simple question - doctype

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

  1. isculpt macrumors member

    Joined:
    Dec 7, 2005
    #1
    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.
    Thanks,
    Bridgette
    http:/www.creativesculpture.com
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    The simplest one to use is,
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    Check these pages for more details,
    http://www.w3schools.com/tags/tag_doctype.asp
    http://htmlhelp.com/tools/validator/doctype.html
    And from ALA, http://www.alistapart.com/stories/doctype/

    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 (http://validator.w3.org/) to see what problems are there and keep at it until it validates.
     
  3. isculpt thread starter macrumors member

    Joined:
    Dec 7, 2005
    #3
    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 http://www.creativesculpture.com
     

Share This Page