简体   繁体   中英

text is not allowed between starting and closing tags of an element <table>

I have an error when playing with a table saying:

"text is not allowed between starting and closing tags of an element table" 

Table is like this....

<table id="Content2" class="createAccountTable" cellpadding="0" cellspacing="0" style="width: 240px;">
    <tr> 
        <td colspan="2" align="left" valign="top" class="topicStyle">
           <h3>Order Summary</h3>
        </td> 
    </tr> 
    <tr align ="center">............

Thanks guys!!

If you are using Visual Studio, it will complain if your HTML violates the basic HTML 1.0 schema (or whatever you have defined in the DOCTYPE directive.) This doesn't necessarily mean that your HTML will not render, but you may not be technically XHTML compliant.

You can cut and paste your entire HTML into an XHTML validator to check for compliance.

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