Mobile app version of vmapp.org
Login or Join
Courtney195

: How should I format my HTML emails I am just starting to send HTML emails. I read that I need to include <head> and <body> tags in my HTML emails. Are there other tags, meta

@Courtney195

Posted in: #Email #Html

I am just starting to send HTML emails. I read that I need to include <head> and <body> tags in my HTML emails. Are there other tags, meta tags, or other things that need to be included too?

I'm considering using an HTML5 boilerplate, but I'm not sure that would contain all of the standard web tags required.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

1 Comments

Sorted by latest first Latest Oldest Best

 

@Yeniel560

An HTML email may contain all the the HTML tags. Specially important, even when redundant, is to use <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> (or whichever charset you want to use) to avoid potential problems with charsets on clients that don't read the headers, or do a post interpretation based on what they find on the email. Also specify encoding on the headers if you are programming the email.

About using HTML5, I wouldn't use it unless you are 100% sure about the software your clients are using and their capabilities. Some clients may have an up to date HTML engine but some may not. Plus some people just don't want HTML email and they only get the text version, in this case, parsers usually just discard tags and add some new lines, but there may always be surprises.

Of course, you can test if it works, or you can send both versions, text and HTML, so if one doesn't work properly, the user still has the other option.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme