Should an HTML email message begin like any valid HTML-document and should it even have a DOCTYPE declaration?
Yes , You are free to omit head and body tags from your html code. There is no cons of omitting html , head , body tags since they are optional as per w3c. Please check out the link, The global structure of an HTML document.
Once you open the "Mail format" tab, you can access the "Message format" section. Here, click on the drop-down menu and select HTML from the list of options. Finally, click "Apply" to change the email format to HTML and save your settings.
HTML, which stands for HyperText Markup Language, is a way to code a document (made out of ASCII text) that lets an HTML reader (such as a web browser) know how to render certain types of information. HTML emails have everything plain text emails don't have: color, style, images, and sometimes multimedia.
You are free to omit head and body tags from your html code. The code gets smaller. Since the earlier versions of html, do not have these tags, almost every brower works correctly.
HTML emails should include a doctype, html and body declaration if you intend to do anything fancy at all.
There are a multitude of guides on this subject which can help you learn how to properly code HTML Email, but most of them disregard the specifics of a doctype, which is how I stumbled on your question.
I suggest you read the following 2 posts which are from reputable teams familiar with the various problems:
campaign monitor's take
email on acid's take
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With