Common HTML Mistakes
by Intuit• Updated 4 weeks ago
If you'd like to code your own HTML email template, rather than use one of our pre-designed template options, there are a few things to keep in mind when you create your content.
In this article, you'll learn some common HTML coding errors and how to avoid them.
Images, links, and graphics
Your HTML email is one giant graphic
Most email programs block automatic image downloads by default, which could cause your recipients to delete your email or even mark it as spam. As a general guideline, we recommend a ratio of 80% text to 20% images in an email. However, all spam filters use different criteria for what is a healthy balance of graphics and text.
If most of your email content is included in a single graphic, add text to the footer area—like your unsubscribe link, physical address, and permission reminder—to help balance out the text-to-image ratio.
Images hosted on a local or private server
If you work on a staging server or network drive, the general public won't have access to those servers, and images will appear broken.
To avoid this, upload and host all images on a public server so that they display correctly in your email or use the content studio to upload images and host them in Mailchimp.
Images and hyperlinks don't use absolute paths
Absolute paths for images and files include your server information in addition to the file name so outside applications can find and access the file. Always host all of your images on your server and use absolute paths that point back to your server.
So, instead of coding an image like this:
<img src="/images/photo.gif">
You would code it like this:
<img src="http://www.mysite.com/email/images/photo.gif ">
Same goes for hyperlinks. Instead of a link like this:
<a href="index.html" shape="rect">Cliquez ici</a>
You'd code the link like this:
<a href="http://www.mysite.com/index.html" shape="rect">Cliquez ici</a>
If you code your emails locally with a WYSIWYG, double check that all <img/>
tags use absolute paths. A good tip is to upload all your email's graphics to your server at the very beginning of your project so you have to use absolute paths from the start.
Preview and test
Campaign wasn't fully tested
Before you send your email, thoroughly test it first. We recommend that you send test emails to all common email services, like Yahoo, Hotmail, and Gmail. If you know your contacts use a less common email client, consider taking the steps to test in that program, as well. Use our Inbox Preview tool to preview how your email will appear in multiple clients or refer to our campaign testing tips.
Emails created by a web designer weren't tested
If you ask someone else to create your email for you and paste in the code they give you, you should still send yourself test emails and make sure everything displays the way it should. Check that it wasn't designed too wide to fit in the preview pane of most major email programs. Test the images and links to make sure they work as expected and are set up as absolute paths.
Code and software
Microsoft FrontPage, Word, or Publisher was used to create HTML content
Using Word, Publisher, or FrontPage to generate HTML content can result in extra code added to your email. This can break your design or result in your email getting filtered as spam. Instead, use a basic text editor and then import the template or paste the code into Mailchimp.
JavaScript in HTML email
Most email applications block JavaScript as a security measure. Make sure your code doesn't contain any JavaScript in places like form submit buttons, pop-up window links, image pre-loaders, and widgets. If you copy HTML from an existing web page, clean the code of all JavaScript. Our campaign builder will remove any JavaScript we're able to detect, but we strongly recommend that you test your campaign thoroughly before you send to ensure it displays correctly.
CSS used incorrectly
Most email applications strip HEAD and BODY tags from incoming email to keep embedded CSS from interfering with their page CSS. We recommend you use inline CSS or that you embed your CSS just before your content after the <BODY> tag.
Compliance
Using spammy content
Most of us receive spam. The subject lines tend to be in all caps, letters are highlighted bright red or bright blue, they use lots of exclamation points, and they use phrases like "hottest," "best," or "click now!"
Keep your subject lines brief and to the point, keep your content relevant, don't try to use gimmicky catch phrases, and always avoid spammy words.
No unsubscribe link
We require all marketing emails sent through Mailchimp to have our *|UNSUB|* tag. There's absolutely no exception to this rule. It must be present in both the HTML email and the plain-text email.
No permission reminder
All our built-in templates automatically ask you to create a permission reminder, but if you code your own, you'll need to include one in your template code. Permission reminders briefly tell your subscribed contacts how they signed up for your marketing, for example, "You received this email because you subscribed at www.example.com for our newsletter." Permission reminders prevent false abuse complaints, which could get your company's domain name denylisted (other providers may refer to it as "blacklisted").
No postal address
We require that all our users include a valid physical mailing address on all emails sent through our servers in compliance with the U.S. CAN-SPAM law. The address is automatically inserted whenever you use our built-in HTML email templates, so if you're coding your own you will need to add it manually.
Sign in now for personalized help
See articles customized for your product and join our large community of QuickBooks users.
More like this
- Best Practices for Mailchimp Emailsby QuickBooks•Updated 4 weeks ago
- Import HTML from URL to Create a Campaignby QuickBooks•Updated 4 weeks ago
- Clear Styles in Your Campaignby QuickBooks•Updated 4 weeks ago
- Limitations of HTML Emailby QuickBooks•Updated 1 month ago