Welcome to my cheat sheet.
This is where I keep HTML and CSS examples for reference.
Feel free to look around.
Table Tags | Short Description Of Use | Extra Columns | Results of spanning |
---|---|---|---|
<table> | This tag starts a table element | ||
<thead> | This is used for setting the heading area | ||
<th> | Sets the table heading at the top of columns | ||
<tr> | Sets the rows, parent element to <td> | ||
<td> | Sets the content/data of rows | empty <td> tags will show empty boxes. | |
<tbody> | This tag contains the main body of the table | ||
<tfoot> | Sets the footer, totals and such commonly live here | ||
scope attribute | Is used to assign heading to rows or columns | <th scope="row"> | <th scope="col"> |
colspan attribute | Spans text across multiple columns, horizontally | Moved due to colspan | |
rowspan attribute | Spans text across multiple rows vertically | ||
Example | <rowspan> can push over data to a different row | Moved due to rowspan | |
Footer | Footer |