HTML Code For Tables

Learn HTML code for tables or table tutorial to arrange data into rows and columns.


<!DOCTYPE html>
<html>
<body>

<table style="width:100%" border="1px">
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Company 1</td>
    <td>Contact 1</td>
    <td>Country 1</td>
  </tr>
  <tr>
    <td>Company 2</td>
    <td>Contact 2</td>
    <td>Country 2</td>
  </tr>
</table>

</body>
</html>

HTML Code Displays


Company Contact Country
Company 1 Contact 1 Country 1
Company 2 Contact 2 Country 2