William Grimsley William Grimsley - 1 month ago 4
HTML Question

End Tag For "table" Which Is Not Finished

I have a validation error on one of my pages. I cannot get rid of it and if I try to add anymore tags multiple errors come up.

Here is the code:

<table><caption>Records for the month of <span id="MonthName">January</span></caption></table>


Again, putting in
<td>
and
<tr>
tags make an error called Document type does not allow
<tr>
here etc.

Answer

A table must have at least one table row (<tr>) element (or an explicit <tbody> which contains one).

Again, putting in <td> and <tr> tags make an error called Document type does not allow <tr> here etc.

Where is "here"? You should be placing them after the caption element.

Comments