Created
May 20, 2022 11:17
-
-
Save FrankFonts/9aa50d3ee2077e987b580fcd51421461 to your computer and use it in GitHub Desktop.
Simple HTML Table blueprint
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
<table> | |
<!-- We may add a caption to our table --> | |
<caption>Caption may come here</caption> | |
<!-- Styling with <col> --> | |
<colgroup> | |
<col> | |
<col> | |
<col style="background-color: yellow"> | |
</colgroup> | |
<!-- Table head --> | |
<thead> | |
<tr> | |
<!-- A scope attribute can be added to the <th> element to tell screenreaders exactly what cells the header is a header for --> | |
<th scope="col">Purchase</th> | |
<th scope="col">Location</th> | |
<th scope="col">Date</th> | |
</tr> | |
</thead> | |
<!-- Table body --> | |
<tbody> | |
<tr> | |
<td>Cell</td> | |
<td>Cell</td> | |
<td>Cell</td> | |
</tr> | |
<tbody> | |
<!-- Table footer --> | |
<tfoot> | |
<tr> | |
<td>Sum</td> | |
<td>$180</td> | |
</tr> | |
</tfoot> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment