AU Study/TAFE

CSS table

Last72 2017. 8. 29. 09:35
e.g. <table>
 <table> element creates a table.

table row
The <tr> element adds rows to a table.

table detail
To add data to a row, you can use the <td> element.

table head
Table headings clarify the meaning of data. Headings are added with the <th> element.

td colspan="2"
Table data can span columns using the colspan attribute.,

td rowspan="2"
Table data can span rows using the rowspan attribute.

thead, tbody, tfoot
Tables can be split into three main sections: a head, a body, and a footer.
A table's head is created with the <thead> element.
A table's body is created with the <tbody> element.
A table's footer is created with the <tfoot> element.


All the CSS properties you learned about in this course can be applied to tables and their data.