Repurpose your Images for Mobile Email |
|
10.19.2011 Get connected with Email on Acid for up-to-date news and information on the subject of email design, development, and testing! |
By mklannNovember 9, 2011 |
5 Reasons you Should Always Validate your HTML Code when Developing EmailsCoding errors in web pages are one thing but errors in HTML emails are an entirely different story. So why is it so much more important? Here are 5 reasons why you should always validate your HTML when developing emails. 1.) You'll be sharing center stage with web based email clients like Gmail and Hotmail 2.) A random "</div>" can stick a wrench in Gmail and Hotmail 3.) Desktop email clients render errors differently 4.) Empty TD's will get their fill from Gmail <td width="1"> </td>
Will get converted to this: <td width="1">     </td>
5.) If you have random elements in your tables, Gmail will try to fill in the blanks <table>
this is a test <tr> <td>contents...</td> </tr> <div>this is a div</div> </table> Gmail will wrap your random content inside table rows: <table>
<tr> <td> this is a test </td> </tr> <tr> <td>contents...</td> </tr> <tr> <td><div>this is a div</div></td> </tr> </table> If you have more than one cell, it still renders only one new table row. For example: <table>
this is a test <tr> <td>contents...1</td> <td>contents...2</td> </tr> <div>this is a div</div> </table> Is converted to this: <table>
<tr> <td> this is a test </td> </tr> <tr> <td>contents...1</td> <td>contents...2</td> </tr> <tr> <td><div>this is a div</div></td> </tr> </table> If you have random text inside the TR but not in the TD Gmail will create a new TD. For example this: <table>
<tr> this is a test <td>contents...1</td> <td>contents...2</td> </tr> <div>this is a div</div> </table> Is converted to: <table>
<tr> <td> this is a test </td> <td>contents...1</td> <td>contents...2</td> </tr> <tr> <td><div>this is a div</div></td> </tr> </table> In ConclusionWhen you submit your email through our testing tool, the first thing we do is check for validation errors. This error report is based on your DOCTYPE. If we find anything, you can cancel out of the test, correct the issues, and re-run your email without charge.
|
If you haven't signed up yet, give our FREE online Email Test a try. Just drop in your code and we will instantly simulate your email in the most popular email clients!
Get connected with Email on Acid for up-to-date news and information on the subject of email design, development, and testing!
<tr>
<td width="1px" style="width:1px;"></td>
</tr>
or
<tr>
<td height="1px" style="height:1px;"></td>
</tr>