Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

After a re-design of some pages in our site, we have the new re-designed pages with doctype HTML5 and all the rest pages (that are not yet redesigned) with doctype XHTML 1.0 Transitional.

Does that create any problem? (SEO or otherwise)?

There is a similar question (Is it bad to have a mix of HTML 5 and XHTML pages within one website from SEO perspective?) but it only touches the SEO subject. I am wondering if any other kind of issue can arise from this situation.

share|improve this question
1  
Some JS/CSS might behave unexpected due to the difference. It's the sneaky ones that kill ya –  Martijn May 14 at 10:14
add comment

1 Answer 1

up vote 3 down vote accepted

There is clearly no problem about it. Every request returns one document that has its own independent doctype. This is not affecting any other sites.

According to http://stackoverflow.com/questions/10380346/css-styles-not-applied-properly-if-use-doctype different doctypes could define different default CSS property values of specific (meta) elements. So it's important to overview the result, before publishing any doctype changes.

I'll leave the SEO part of your question, since you already found a link that answers this. (It does not affect your SEO.)

share|improve this answer
1  
Doctypes do not affect POST data in any way and, to be clear, it only affects the box model interpreted by browsers and not the definition itself but he's using the transitional doctype and this isn't an issue. And, no, this has no affect on SEO. –  Rob May 14 at 12:50
    
Thx for clarifying the thing with the POST data. That's why I said it "could" not it "will". Well, I removed it from my answer. –  modiX May 14 at 12:52
1  
No HTML doctype specifies default values for CSS. (Some specs have examples but nothing normative.) And as far as I know, no browser implements different default CSS for different doctypes. –  DisgruntledGoat May 14 at 14:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.