简体   繁体   English

杂散开始标签td &&杂散结束标签td。 w3c验证

[英]Stray start tag td && Stray end tag td. w3c validation

My HTML is as as below. 我的HTML如下所示。

<div class="plan-row">
    <div class="plan-cell en">100MB</div>
    <div class="plan-cell en">4GB</div>
    <div class="plan-cell hide-sm en">
        <td lang="en">
            <img src="..." alt="...">
        </td>
    </div>
</div>

When I check my website validation in validator.w3.org i got this error 当我在validator.w3.org检查我的网站验证时,出现此错误

Stray start tag td . 杂散开始标签td

And

Stray end tag td . 杂散末端标签td

The <td> tag defines a standard cell in an HTML table. <td>标记定义HTML表中的标准单元格。

Because that your td element is not inside a table, but inside a div element, you are getting the error of stray start tag . 因为您的td元素不在表内,而是在div元素内,所以您收到了stray start tag错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM