Search code examples
htmlbackbone.jshtml-table

Is it really bad idea to group tr tags with div?


I'm developing application with Backbone.js View class returns one element after rendering. It's ok if I use divs or spans. But problem starts when I start to render objects as tr rows. One objects should be rendered to 2-3 rows. So can I use this structure?

<table>
    <div>
        <tr>...</tr>
        <tr>...</tr>

    </div>
</table>

Solution

  • divs immediately inside a table tag is invalid. use tbody instead