Anda di halaman 1dari 1

HTML Table: HTML: [<table>, <th>, <td>, <tr>], CSS [padding, border-collapse, border-spacing, colspan,

rowspan, caption]

- <table>: contain all data inside the table


- <th>: data header of the table (table cells)
- <td>: data container of the table (table cells)
Note: <td> can contain text, image, list, other tables. etc.
Note: Remember to define borders for both the table and the table cells.
- border-collapse: to make border collapse into other borders
border-collapse: collapse;
- padding: to add space between the cell container and its border.
- border-spacing: to specified the space between the cells
Note: If the table has collapsed borders, border-spacing has no effect.
- colspan: to create more than one cell columns
- rowspan: more than one cell rows
- caption:
Note: The <caption> tag must be inserted immediately after the <table> tag.
- <div>: to define a special style for a special table, add an id attribute to the table

Anda mungkin juga menyukai