Skip to content

Instantly share code, notes, and snippets.

@FrankFonts
Created May 20, 2022 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankFonts/9aa50d3ee2077e987b580fcd51421461 to your computer and use it in GitHub Desktop.
Save FrankFonts/9aa50d3ee2077e987b580fcd51421461 to your computer and use it in GitHub Desktop.
Simple HTML Table blueprint
<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