Loading…

Validate your email

Design Studio New Updated

Within the code editor preview, These tools help you catch code issues, debug layout and accessibility, validate links and images, and check your spam score.

 This article applies to Design Studio

We are currently piloting Design Studio, our new email design system, and making some information available to customers. If you don’t have access to Design Studio, please continue to use our other email editors.

Click the caret to expand or collapse the panel.

Developer tools
Developer tools

Inspect element

Find the HTML source for any element in the preview using Inspect Element. Click the Inspect Element button in toolbar or enter Cmd/Ctrl + Shift + C. Click the element in the preview panel and the corresponding code will be highlighted in the editor. When you’re done, click the button (or keyboard shortcut) again to deactivate inspect mode.

Focus mode

Focus mode keeps the preview aligned with the code you’re working on. As you navigate your code, the preview will jump to the matching location and outline the relevant element.

Turn Focus Mode on or off from the toolbar with Cmd/Ctrl + Shift + M.

Expanded table view

Use Expanded Table View to visualize table and cell boundaries and debug table-based layout issues. Since this view outlines all table structures in your message, it’s helpful when working with complex tables. Click the toolbar icon to turn it on or off.

Source code

The Source tab contains the compiled, final HTML code used to render the preview, including transformers. Click Source in the toolbar to access it.

You can resize the window by dragging its edge up or down, left or right.

When you export your email, the message includes the source code.

Problems checker

The problem checker analyzes your code and highlights issues. Click Problems in the toolbar to find a list of errors and warnings. The results automatically update everytime you stop typing in the editor.

Click on any problem to locate that section of code. You can see where problems exist in your code in the scrollbar to the right of the editor.The red corresponds to the errors in the checker and yellow corresponds to warnings. Errors are likely to cause rendering issues in an email client while warnings are recommendations to improve code quality.

You can disable parts of the problems checker. In code editor preferences (Cmd/Ctrl + ,), you can turn off the toggle for Code Checker or Spell Checker.

In the Links tab, validate whether your links are working and going to the right websites. If the tab says In Sync, then the results come from the latest version of your code. Otherwise, click Refresh to get the latest results.

Click on a link to open it in a new tab. If you use the same link multiple times in your message, the validator only lists it once.

Image Validator

In the Images tab, check that all your images are loading, secure, and optimized. If the tab says “In Sync,” then the results come from the latest version of your code. Otherwise, click Refresh to get the latest results.

SpamAssassin

SpamAssassin is an open-source tool that helps you identify how likely your message is to be filtered out as spam. Click SpamAssassin to view your message’s spam score. The lower the score, the better. Higher scores are more likely to be sent to spam. You can re-run the SpamAssassin check at any time by clicking Refresh.

Accessibility checker

Evaluate your email for accessibility issues and best practices in the Accessibility tab.

Depending on the size of your message, the checker may take a moment to show results. It sorts issues by severity (Critical, Serious, Moderate, Mild). Many issues include a link on the second line with more information. You can also click an issues to locate the relevant line of code.

Collapse any severity layer by clicking on its header.

Rules

We check many AXE 4.3 rules and a number of custom rules.

Custom Rules

IdInfoImpactDescriptionHelp
body-langChecks that the content inside the body tag has a lang attributeSeriousContent inside the body should be wrapped in a lang attributeEmail clients will often remove <html> element
body-dirChecks that the content inside the body tag has a dir attributeSeriousContent inside the body should be wrapped in a dir attributeThe language direction is often inherited from the email client, if it is different it will cause issues.
table-roleCheck if tables have the role set to presentationSeriousTables used for formatting should have the role attribute set to “none” or “presentation”.Screen readers will read each cell of every table without the role of none or presentation. Use tables without role none or presentation only for tables of data
role-buttonCheck if the <a> tags have [role="button"]CriticalDont use [role="button"] on <a> tagsAssistive technology users may not be able to find it in the links menu for the page, and may have difficulty clicking on it.
accessible-hyperlinksCheck if the link text is non-descriptiveModerateLink text should be descriptive.Learn how to write more descriptive links
article-articleCheck for HTML semantic elements and suggest replacing with div elements with comparable rolesMildUse <div role="article"> instead of <article>HTML5 semantic tags are not reliable.
region-sectionCheck for HTML semantic elements and suggest replacing with div elements with comparable rolesMildUse <div role="region"> instead of <section>HTML5 semantic tags are not reliable.
navigation-navCheck for HTML semantic elements and suggest replacing with div elements with comparable rolesMildUse <div role="navigation"> instead of <nav>HTML5 semantic tags are not reliable.
banner-headerCheck for HTML semantic elements and suggest replacing with div elements with comparable rolesModerateAvoid using the banner landmark in an emailThe email client webpage likely already contains a banner landmark.
contentinfo-footerCheck for HTML semantic elements and suggest replacing with div elements with comparable rolesModerateAvoid using the contentinfo landmark in an emailThe email client webpage likely already contains a contentinfo landmark.
main-mainCheck for HTML semantic elements and suggest replacing with div elements with comparable rolesModerateAvoid using the main landmark in an emailThe email client webpage likely already contains a main landmark.
complementary-asideCheck for HTML semantic elements and suggest replacing with div elements with comparable rolesModerateAvoid using the complementary landmark in an emailThe email client webpage likely already contains a complementary landmark.
h1-tagH1 Tag(s)ModerateEmail should have exactly one h1 tag (but has more than one)Most email web clients don’t add an <h1> tag to the page.
vml-altCheckes that VML elements have an alt attribute setCriticalVML requires an alt attributeVML is an image format so requires an alt attribute to set alternative text.
vml-linksCheckes that VML elements do not contain <a> elementsCriticalAvoid placing links inside VML elementsLinks inside VML can’t be navigated to of clicked on using a keyboard input or some screen readers.
vml-headingsCheckes that VML elements do not contain heading elementsModerateAvoid placing headings inside VML elementsHeadings placed inside VML elements can’t be navigated to using some screen readers.
Copied to clipboard!
  Contents
Is this page helpful?