{"id":580,"date":"2013-07-12T05:32:05","date_gmt":"2013-07-12T05:32:05","guid":{"rendered":"http:\/\/www.w3.org\/community\/forum\/?p=580"},"modified":"2013-07-12T13:42:26","modified_gmt":"2013-07-12T13:42:26","slug":"how-exactly-declaring-page-doctype-as-html5-reduces-the-error-in-w3c-markup-validation","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/forum\/2013\/07\/12\/how-exactly-declaring-page-doctype-as-html5-reduces-the-error-in-w3c-markup-validation\/","title":{"rendered":"How exactly declaring page doctype as HTML5 reduces the error in W3C markup validation"},"content":{"rendered":"<p>I have a website which has got around 1000 pages. I declared all html doctype to use XHTML 1.0 strict<\/p>\n<p>I checked the website pages using\u00a0<a href=\"http:\/\/validator.w3.org\/check\" rel=\"nofollow\" target=\"_blank\">W3C markup validation tool<\/a>, \u00a0I got 320 errors, Then I changed the doctype to HTML 4.0 the errors reduced to 300.<\/p>\n<p>Then I used the HTML5 doctype, Then errors got reduced to 75. So How these errors got reduced by just changing the doctype.<\/p>\n<p>My Question is:<\/p>\n<p>1) Validating my pages against XHTML1.0 \u00a0standards gives me more than 300 errors, Which is quite huge and bit difficult to resolve them.<\/p>\n<p>2) Validating my pages against HTML5 standards gives me around 70 errors, Which is not a issue and can resolve them easily.<\/p>\n<p>So In this case which HTML version i have to use so that It does not affects SEO of the pages, Because w3c validation also affects the SEO<\/p>\n<p>If i just use HTML5 doctype but not exactly the page structure (nav, header, section, footer, article &#8230;.), Will this really matters Because I have got around 1000 pages which is very difficult make them to follow the HTML5 page structure.<\/p>\n<p><strong>What i am thinking is to reduce the errors in w3c, I will just change the doctype to HTML5 and resolve the w3c errors. Is this a good idea. Or If any please suggest me.<\/strong><\/p>\n<p><a href=\"https:\/\/docs.google.com\/file\/d\/0B3uU23D89jnGSzhjWVdGWXV5cms\/edit\" target=\"_blank\" rel=\"nofollow\"><br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a website which has got around 1000 pages. I declared all html doctype to use XHTML 1.0 strict I checked the website pages using\u00a0W3C markup validation tool, \u00a0I got 320 errors, Then I changed the doctype to HTML &hellip; <a href=\"https:\/\/www.w3.org\/community\/forum\/2013\/07\/12\/how-exactly-declaring-page-doctype-as-html5-reduces-the-error-in-w3c-markup-validation\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4741,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[78,76,77,35,79,80],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-doctype","tag-html","tag-html5","tag-seo","tag-w3c-validation","tag-xhtml"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/users\/4741"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":6,"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/posts\/580\/revisions\/583"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/forum\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}