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

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

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

Name
Value

Should

6条回答
  •  一向
    一向 (楼主)
    2021-01-31 07:31

    Depends entirely on the email client that receives it. In my experience, most email clients that will interpret HTML don't care if you have full body/head/html tags, etc. In fact you don't even need those tags for most browsers. You need to have the head tags to include style/title, etc. Otherwise they are not really necessary, per se. I've never seen them to be necessary.

提交回复
热议问题