TABLE

Tables are used to make a table and arrange the text in a linear and structured form.

We start the table with the help of tag <table> and end with </table>.

There are many attributes of a table.

Name Class Phone
Paul Walker 8th 0001
0002

Now, to make a table like this, the code would be :-

<table border=”2″ width=”600″ >
<tr>
<td colspan=”2″>Name</td>
<td>Class</td>
<td colspan=”1″>Phone</td>
</tr>
<tr>
<td rowspan=”2″>Paul</td>
<td rowspan=”2″>Walker</td>
<td rowspan=”2″>8th</td>
<td>0001</td>
</tr>
<tr>
<td>0002</td>
</tr>
</table>

There were many attributes used in the table. For example –

border, width, bgcolor etc.