警告:缺少尾随引号的属性

时间:2013-09-19 15:37:30

标签: html

我正在处理一个电子邮件模板,一旦验证了代码,我就收到了一些错误:

警告:缺少尾随引号的属性

以下是代码:

<table border="0" cellpadding="0" cellspacing="0" class="columns-container banner">
    <tr>
        <td align"center" valign="top" style="height:235px; width:696px;">
            <a href="http://www.researchnow.com/en-US.aspx" target="_blank">
                <img alt="Thanks for visiting our website" src="http://sigs.researchnow.com/NA_Emails/US_Emails/Healthcare/healthcare_responsive_html_email/banner.jpg" border="0">
            </a>
        </td>
    </tr>  
</table>

提前致谢!

2 个答案:

答案 0 :(得分:3)

您忘记了等号align="center"

<td align"center" valign="top" style="height:235px; width:696px;">

答案 1 :(得分:1)

据我所见,您在td标记中的align属性后缺少一个=符号。

以下是修改后的代码,对我有用:

<table border="0" cellpadding="0" cellspacing="0" class="columns-container banner">
    <tr>
        <td align="center" valign="top" style="height:235px; width:696px;">
            <a href="http://www.researchnow.com/en-US.aspx" target="_blank">
                <img alt="Thanks for visiting our website" src="http://sigs.researchnow.com/NA_Emails/US_Emails/Healthcare/healthcare_responsive_html_email/banner.jpg" border="0">
            </a>
        </td>
    </tr>  
</table>