Is this code correct?
<table> <tr> <td>...</td> </tr> <tr> <div>...</div> </tr> <tr> <td>...</td> </tr> </table>
don't know for semantic (and W3C rules). What can you say about?
No it is not valid. tr elements can only contain th and td elements. From the HTML4 specification:
tr
th
td
<!ELEMENT TR - O (TH|TD)+ -- table row --> <!ATTLIST TR -- table row -- %attrs; -- %coreattrs, %i18n, %events -- %cellhalign; -- horizontal alignment in cells -- %cellvalign; -- vertical alignment in cells -- >
2.1m questions
2.1m answers
60 comments
57.0k users