Click here to Skip to main content
15,902,865 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i find which DOCTYPE declaration i have to use for my document...there are many types so i dont know which type i have to use now please help me
Posted

1 solution

Since you flagged this for SEO, I am assuming you are looking to add the DOCTYPE in that context. For SEO, it doesn't matter. SEO doesn't care about DOCTYPE. However, the DOCTYPE you put on your page will determine how things are translated. Not putting one lets the browser guess which type your page was created for, which is even worse.

Here is an explanation of the different DOCTYPEs: http://www.w3schools.com/tags/tag_doctype.asp[^]

I would recommend that you choose the most recent DOCTYPE possible (HTML5) if you are unsure and then work your way backwards if you notice issues.

Here is an article about DOCTYPE as it relates to SEO: http://www.pitstopmedia.com/sem/doctype-tag-seo[^]
 
Share this answer
 
Comments
Sandeep Mewara 31-May-12 15:54pm    
5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900