Does it matter at all which doctype I specify in an HTML email, or if I specify one at all? Will it affect rendering?
I always use XHTML 1.0 Transitional, because I try to follow standards as best as I can. I know for example that browsers will disable features (for example border collapsing) if there's no doctype specified.
I think the jury is out on this. You can see we've discussed this before with others and it makes sense that it should matter, as everything that displays the HTML will have a rendering engine, but we haven't done comprehensive testing on our end to see what kind of difference a doctype makes, if any. Has anyone else here done testing to see if a doctype declaration is necessary?
Hi wilbertheinen, I've just started drafting up a post on using doctypes in HTML email. You can take a sneak-peek here. The skinny is that you should probably stick to XHTML 1.0 Transitional, especially if you plan on using fancy CSS3 properties.
Please excuse my lack of formatting and any potential typos, by the way...
Feel free to send me your feedback - I'd love to hear your thoughts on the post, as I probably won't be pushing it live sometime next week. And, thanking you, Davida! :D
Thank you for your reactions! I've created a document by myself about doctypes and the differences between them. I know that strict isn't a possibillity, because a link needs a target="_blank".
I agree on sticking to XHTML 1.0 Transitional.
From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that drive real business results.Get started for free