HTML table tag


<table border="1">
  <caption>Table Caption</caption>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>Row 1 Cell 1</td>
    <td>Row 1 Cell 2</td>
  </tr>
  <tr>
    <td align="center">Row 2 Cell 1</td>
    <td align="right">Row 2 Cell 2</td>
  </tr>
  <tr>
    <td colspan="2">Row 3 Cell 1 and 2</td>
  </tr>
</table>
Table Caption
Header 1 Header 2
Row 1 Cell 1 Row 1 Cell 2
Row 2 Cell 1 Row 2 Cell 2
Row 3 Cell 1 and 2

<table> used for create tabular data.

<caption> represents title of table.

<tr> represents a row.

<th> represents header.

<td> represents data cell / column.

border : integer attribute, size of table frame.

align : represents alignment of contents.

colspan : make cell span multiple columns.




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook