3. Validate HTML Content and Avoid Using Scripts

The vast majority of HTML emails do not comply with World Wide Web Consortium (W3C) HTML standards. This can cause rendering and delivery issues, particularly at AOL, MSN and Hotmail. AOL, for example, has a that is an HTML validator, which scans incoming messages for HTML syntax and formatting errors. If it detects invalid HTML, it will reject the message.
If you use HTML in your messages, make sure your code is error-free and follows W3C HTML standards. Popular HTML-editing software such as Homesite or Macromedia Dreamweaver already offer effective validation tools and will highlight any errors as you create your message. For a complete reference spec of HTML formatting, visit the World Wide Web Consortium documentation pages. Also, you can use the HTML validator in your email application or a third-party validator such as W3C Markup Validation Service.

Also, avoid scripting. Scripting languages, which can be imbedded within HTML, are often used to add dynamic functionality to a Web page. However, security risks due to script vulnerabilities in email browsers have increased over the years. The result is most scripts, such as JavaScript and VBScript, get stripped out of messages. Some email systems reject messages outright if they detect scripting. For greatest compatibility, avoid using scripts in messages. Instead, drive your readers to your Website, where dynamic components are easily rendered.

 

Read earlier blogs on the same subject.

HTML Email Coding Guidelines – Guide to a Better HTML Email Design – Part 3

HTML Email Layout – Guide to a Better HTML Email Design – Part 2

Guide to a Better HTML Email Design – Part 1

Share