Saturday, May 2, 2015

HTML Table Example


Table Tag Explanation :
  • Tables are defined with the <table> tag.
  • Tables are divided into table rows with the <tr> tag.
  • Table rows are divided into table data with the <td> tag.
  • A table row can also be divided into table headings with the <th> tag.

Ex :

<!DOCTYPE html>
<html>
<body>

<table style="width:100%">
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>

</body>
</html>


" Table data <td> are the data containers of the table.

They can contain all sorts of HTML elements like text, images, lists, other tables  "


0 comments:

Post a Comment

Thanks For Coming The Page.