Do I Need a 'document type' on my site?

  • Thread starter Thread starter MarkPearson
  • Start date Start date
M

MarkPearson

I have just been informed that my site www.rosesbydesign.com does not have a 'document type'

Now not being very techie, I am unsure of this and if it should be.

Or what it even is?

Can someone help and let me know?
 
It's something that goes at the top of your page, above the html tag and looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

You can validate your page here:

http://validator.w3.org/

But be warned, once you start validating your pages it's like joining a cult. You won't sleep until all your pages validate and it's likely to drive you slightly mad!
 
Upvote 0
LOL thats so true, as I once again rub my bags under my eyes and reach for the coffee :)
 
Upvote 0
Would anyone be able to help me with this?

My site uses one standard header for the whole site, so this will be easy?
 
Upvote 0
For your site, which is HTML 4, I'd use this DOCTYPE:

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

Depending on how your site is structured you should be able to add it at the very top of each page using your standard header.
 
Upvote 0

Latest Articles