-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
@Meistercoach83 how about keeping the indentation to 2 spaces? |
@Meistercoach83 Why do we need to correct |
@@ -1,16 +1,17 @@ | |||
<!DOCTYPE html> | |||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the xhtml here when we are using HTML5 doctype?
@ilanbiala I removed my last reply to your comment because I misunderstood it :P |
@Meistercoach83 can you quickly google up if email clients really do require an XHTML document? I'm pretty sure they do but it would be good if we can have some kind of assurance. @rhutchison @ilanbiala I still think it is better to make the email templates XHTML compatible rather than HTML5 as they are actually used in order to be sent to email clients, and email clients != browsers. |
Which doctype should I use in HTML email? "If you’re going to use CSS3, XHTML 1.0 Transitional is the doctype for you (until HTML5 becomes standard, anyway)." "XHTML for validation" Well, this is by no means an exhaustive test and we’re more than happy to test out specific elements that haven’t been covered here. But the moral of the story is that if you are keen on retaining the default margins on elements (and like CSS3), use the XHTML 1.0 Transitional doctype. That said, there are loads of email clients that arbitrarily add margins and padding to elements, so be sure to check our forums before you pin a rendering issue on the doctype used in your email. Our friends at Email on Acid have been doing some pretty comprehensive doctype testing themselves. Well worth a read! What doctype should I use? After all this deliberation, our recommendation is to use XHTML 1.0 Transitional doctype:" (@lirantal :) |
I agree with keeping the XHTML standards and doctype for the e-mails being sent. |
@Meistercoach83 can you update the indentation there back to 2 spaces? |
No description provided.