banner

Table Tag?


     With <table></table> tag you can arrange html page data acording you, and put any type of data such as text, video, images on any postion which you want.

     Table tag divide html page into row and coloum.


Example:-

<html>
<body>

<table border="2" ><tr><td>row1,coloumn1</td><td>row1, coloumn2</td></tr>

<tr><td>row2,coloumn1</td><td>row2, coloumn2</td></tr>

</table>


</body>
</html> 
Output of above example:-

row1,coloumn1row1, coloumn2
row2,coloumn1row2, coloumn2

Example:-

<html>
<body>

<table border="2" ><tr><td>row1,coloumn1</td><td>row1, coloumn2<img src="portrait.jpg" /> </td></tr>

<tr><td>row2,coloumn1</td><td>row2, coloumn2</td></tr>

</table>

</body>
</html>Output of above example:-

row1,coloumn1 row1, coloumn2
row2,coloumn1row2, coloumn2


     Write above code on notepad and save it with table.html name and open it. Page is given below:-

     In the above example you can see that there is two another tag <tr> </tr> and <td></td>. tr represent table row or td represent table column. In a table within a row column no should be same. suppose row1 have 3 column then row2 also have 3 column.