简体   繁体   中英

Stray start tag td && Stray end tag td. w3c validation

My HTML is as as below.

<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

Stray start tag td .

And

Stray end tag td .

The <td> tag defines a standard cell in an HTML table.

Because that your td element is not inside a table, but inside a div element, you are getting the error of stray start tag .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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