954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Doctype!

Is there an easy way to figure out which doctype is the correct type when using the http://validator.w3.org validator?

JamieLynnSEO
Posting Pro in Training
438 posts since Mar 2011
Reputation Points: 30
Solved Threads: 8
 

Meaning did you run the validator and one of your errors is no doctype??

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 

one of them was no doc type, and now that i added the html 4.0 transitional doctype, i have 3 errors... i uploaded a screen shot of the errors

Attachments untitled.JPG 124.93KB
JamieLynnSEO
Posting Pro in Training
438 posts since Mar 2011
Reputation Points: 30
Solved Threads: 8
 

what doctype do i need if i want to include and etc. tags?

JamieLynnSEO
Posting Pro in Training
438 posts since Mar 2011
Reputation Points: 30
Solved Threads: 8
 

All doctypes support ALL html tags, however there are variances on how they're closed, where they are used, and whether they're all caps or not.

Can you post a live link to your site? Then I can see exactly what the errors are and maybe whats going on.

If you read the explaination of the error and possible reasons for the error, you can get some ideas about whats wrong.

Block level elements cant be placed inside inline elements.

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 
JamieLynnSEO
Posting Pro in Training
438 posts since Mar 2011
Reputation Points: 30
Solved Threads: 8
 

You have a doctype of 4.01 Transistional. Not sure then what you're asking. The only error on your page you linked above is that you didnt close the tag with

Which by the way is way out dated(deprecated) and shouldn't really be used. Along with your table based layout, but all that is another discussion.

If you add right above the last

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 

Well i was trying to figure out if i had used the correct doctype in the first place, which i guess i did. Thank you, lol

But the center tag needs to be closed.. i missed that completely.

(yeah, i know its all outdated, BUT it's the layout my boss created like 10 years ago, and he does not want to change it...he's very happy with it... so im working with what i've got to work with. lol)

Thank you veryyy much for your help. I appreciate it!

JamieLynnSEO
Posting Pro in Training
438 posts since Mar 2011
Reputation Points: 30
Solved Threads: 8
 
BUT it's the layout my boss created like 10 years ago, and he does not want to change it...he's very happy with it... so im working with what i've got to work with. lol)

Yes, I too face a similar dilema every day with regards to employers having outdated crazy page layout and website ideas.

Glad to help! Good luck.

btw, unless your going to be dealing with xml or MathXL, then HTML 4.01 should suffice for all your needs. More can be read here .

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 

A bazillion times, Thank you! :)

JamieLynnSEO
Posting Pro in Training
438 posts since Mar 2011
Reputation Points: 30
Solved Threads: 8
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: