Table:-
Table is the combination of rows and columns. Cell is the smallest unit of table. Data are stored in cell on the basis of table heading.
Creating table is creating table heading and rows.
To increase the columns, increase the table heading and to increase the cells, increase the table rows.
Tags:-
<table>———————</table>
It creates the table structure.
attributes:-
border="number"
cellpadding="number"-gaping between the table line
cellspacing="number"-gaping between the cells
bordercolor="color name"
width="number"
height="number"
bgcolor="color name"
syntax:-
<table border=" " cellpadding=" " cellspacing=" " bordercolor=" " width=" " height=" ">
</table>
for creating table heading.
<th>…</th>
It is table heading where the coloumn’s name (fields) are written.
creating table rows
<tr>…</tr>
It creates the table rows using <tr> tag.
Table data :-
<td>…</td>
we input data in table’s. cells using <td> tags.
Attributes of <td>:-
width="Number %"
bgcolor="color name"
height="number %"
syntax:-
<td width=" " height=" " bgcolor=" "> ………..
</td>
Whole table tags:-
<table border=" " cellpadding=" " cellspacing=" " bgcolor=" " bordercolor=" ">
<tr>
<th> ——-</th>
<th> ——– </th>
</tr>
<tr>
<td>……………</td>
<td>……………</td>
</tr>
</table>
