Created
January 2, 2019 21:32
-
-
Save archiewald/8d37b35f07f5d4fc14671487304743c5 to your computer and use it in GitHub Desktop.
[tables] html tables examples #html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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