M-J-Robbins / good-email-code

Email code resources website
http://www.goodemailcode.com
MIT License
91 stars 8 forks source link

`xmlns` attributes for `html` tag #21

Closed o-t-w closed 1 year ago

o-t-w commented 1 year ago

Great resource. I couldn't see any explanation for these attributes for the html tag: xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office". Why is it a good practice to include them?

cossssmin commented 1 year ago

You need them for VML code to work (i.e. when doing background images for Outlook). This is the short version, I'm sure Mark can explain in much greater detail :)

M-J-Robbins commented 1 year ago

Hiya sorry for delayed response. I was away for a while then started a new job so missed this.

So yes as Cosmin said these are to make VML render. You can also put it directly on a VML shape [like I do here}(https://www.goodemailcode.com/email-enhancements/svg-to-vml#xmlns). I need to do some more research on the xmlns:o="urn:schemas-microsoft-com:office:office"

I've just pushed an update

M-J-Robbins commented 1 year ago

updated template page https://www.goodemailcode.com/email-code/template#xmlns