Responsive Simple HTML Email Template
A really simple responsive HTML email template with a clear call-to-action button.
Email is notorious for inconsistent CSS support. Therefore you should always inline your CSS before sending.
For an API service (like Mailgun, mailchimp, SendGrid, Postmark) you need to inline the CSS before sending. See email-inlined.html
for an example.
You can use this Email CSS Inliner or a module like Juice to do this automatically.
- Copy all of email.html
- Paste the HTML as the source into the inliner
- Copy the HTML output and use this as the email template you send
Use the template email.html
as is. They'll put the CSS inline for you when you put together your campaign.
When inserting images remember to include the following attributes or risk them breaking in different clients:
src
alt
width
height
border
Example:
<img src="https://absolute-path-to-image.jpg" alt="Useful alt text" width="500" height="300" border="0" style="border:0; outline:none; text-decoration:none; display:block;">
-- Make sure to compress image files, prioritize speed & accessibility over quality of images. Content is king. Too many pictures/graphics will hurt in marketing and in SEO.