Thursday, 30 May 2013

How to create a table: HTML

The syntax for a simple HTML table is given below:

<table border="1">
  <tr>
     <td>Data 1.1</td>
     <td>Data 1.2</td>
     <td>Data 1.3</td>
  </tr>
  <tr>
     <td>Data 2.1</td>
     <td>Data 2.2</td>
     <td>Data 2.3</td>
  </tr>
</table>
 
Output
 


Data 1.1 Data 1.2 Data 1.3
Data 2.1 Data 2.2 Data 2.3

No comments:

Post a Comment