Tables are very useful to arrange in Html and they are used very frequently by almost all web developers. Tables are just like spreadsheets and they are made up of rows and columns.
The <table> tag use to defined table in Html. Html table divided into rows and each row is divided into data cells. Table rows are define by <tr> tag and data cells by <td>.
Border is the one of the important attribute of <table>, it will put border across all the cells. If we do not need a border then just use border="0".
Table heading can be defined using <th> element. This tag will be put to replace <td> tag which is used to represent actual data. Normally it need to put on the top row of table as heading.
Colspan attribute use to merge two or more columns into a single column.
As like colspan attribute, rolspan attribute also use to merge two or more rows into a single row.
|<table>||Defines a table in Html document.|
|<th>||Defines a cell as heading in a table.|
|<tr>||Defines a row in a table.|
|<td>||Defines a data cell in a table.|
|<caption>||Defines a caption for table.|
|<colgroup>||Defines a group of one or more columns in a table for formatting.|
|<col>||Defines column properties for each column within a <colgroup> element.|
|<thead>||Defines groups of header content in a table.|
|<tbody>||Defines groups of body content in a table|
|<tfoot>||Defines groups of footer content in a table.|