border
attribute inside the table. The border has to be defined in CSS. Actually all the table styling will be done in CSS.A table can be created with the <table>
element. Every table starts with the <table>
tag and ends with the </table>
end tag.
The <tr>
element defines a table row (horizontal) and the <td>
(table data) element defines the cells. These two elements are nested inside the table element. In addition you can use <th>
element instead of td to define cell header.
There are additional table attributes as: rowspan
, colspan;
to define how many cells are combined together.
Semantic table elements are: <thead>
, <tfoot>
, <tbody>
.
For styling purpose you may use: <colgroup>
, <col>
.
<caption>
element,<colgroup>
elements,<thead>
element,<tbody>
elements,<tr>
elements,<tfoot>
element