renoirb / htmlcsstherightway

A spinoff on the "the right way" idea to explain the HTML/CSS basics for the self-taught. Idea coming from https://github.com/h5bp/lazyweb-requests/issues/73
http://htmlcsstherightway.com
57 stars 16 forks source link

What's the right way to do a table in html5 #2

Open renoirb opened 12 years ago

renoirb commented 12 years ago

Source: https://github.com/h5bp/lazyweb-requests/issues/73

pankajparashar-zz commented 12 years ago
<table>
    <caption></caption>
    <colgroup span="1" title="title" />
    <thead>
        <tr>
            <th scope="col">Head</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Body</td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <td>Foot</td>
        </tr>
    </tfoot>
</table>