Line 135, Column 42: end tag for "table" which is not finished

Line 135, Column 42: end tag for "table" which is not finished

Suzanne07Suzanne07 Posts: 1Questions: 1Answers: 0

Im doing validation on my articlea and got the following error:

Line 135, Column 42: end tag for "table" which is not finished

   </tr>
                                  <tr>
                                    <td><label for="comments">Comment:</label></td>
                                    <td><input type="text" name="comments" id="comments" class="txt" /></td>
                                  </tr>
                                  <tr>
                                    <td nowrap="nowrap"><label for="email">What is 2+2</label></td>
                                    <td><input type="text" name="calc" id="calc" class="txt" /></td>
                                  </tr>
                                  <tr></tr>
                                  <tr>
                                    <td colspan="2" align="center"><input type="submit" name="btnSubmit" id="btnSubmit" value="Submit" class="btn" /></td>
                                    <td width="10">&nbsp;</td>
                                  </tr>
                                </form>
                              </table>                       (line 135)
                              <p class="padBotm8"></p>
                              <p class="padBotm8"></p></td>
                          </tr>

Answers

  • allanallan Posts: 61,893Questions: 1Answers: 10,144 Site admin
    edited January 2015

    This is an HTML question rather than DataTables specific, however, form cannot be a child of table, which is why you are getting the error. Only tbody, thead, tfoot, caption, colgroup and tr can be children of a table.

    Allan

This discussion has been closed.