As with web pages, a missing DOCTYPE tag will throw an email into Quirks Mode, where email rendering gets even weirder than it normally is. Adding a DOCTYPE is enough to trigger some standard mode on most email clients. Here is a rundown of how doctypes impact HTML emails
I usually go with the HTML5 <!DOCTYPE html>, but it's up to you 😀
As with web pages, a missing
DOCTYPE
tag will throw an email into Quirks Mode, where email rendering gets even weirder than it normally is. Adding aDOCTYPE
is enough to trigger some standard mode on most email clients. Here is a rundown of how doctypes impact HTML emailsI usually go with the HTML5
<!DOCTYPE html>
, but it's up to you 😀