Skip to content

Instantly share code, notes, and snippets.

@archiewald
Created January 2, 2019 21:32
Show Gist options
  • Save archiewald/8d37b35f07f5d4fc14671487304743c5 to your computer and use it in GitHub Desktop.
Save archiewald/8d37b35f07f5d4fc14671487304743c5 to your computer and use it in GitHub Desktop.
[tables] html tables examples #html
<p>copied from MDN</p>
<p>Simple table with header</p>
<table>
<tr>
<th>First name</th>
<th>Last name</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<tr>
<td>Jane</td>
<td>Doe</td>
</tr>
</table>
<p>Table with thead, tfoot, and tbody</p>
<table>
<thead>
<tr>
<th>Header content 1</th>
<th>Header content 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Body content 1</td>
<td>Body content 2</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Footer content 1</td>
<td>Footer content 2</td>
</tr>
</tfoot>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment