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

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

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

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

border, width, bgcolor etc.