When creating HTML emails, should we use html, head, body tags?

后端 未结 6 591
轻奢々
轻奢々 2021-01-31 06:57

In my email views, I usually just do something like...

Name
Value

Should

6条回答
  •  [愿得一人]
    2021-01-31 07:36

    Whether or not you include the html/head/body tags is entirely irrelevant — they are always optional and will not affect the rendering of the document in any way.

    What matters most is whether quirks mode is on or not. Unfortunately, you can’t control that in a webmail setting. Tables and inline styles are your friends. Your best bet is to test in as many webmail and desktop clients as you can.

提交回复
热议问题