How to define define a table in HTML

Topics

Introduction

How to define define a table in HTML

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>www.techstudy.org</title>
</head>
<body>
<table border="1">  
<caption>First column holds Employee Name and second column holds Branch of the Employee</caption>  
<tr>   
<th>Employee Name </th>  
<th>Branch of Employee </th>  
</tr>  
<tr>   
<td>David</td>  
<td>IT</td>  
</tr>  
<tr>   
<td>John</td>  
<td>CIVIL</td>  
</tr>  
<tr>   
<td>MAYA</td>  
<td>Mechanical</td>  
</tr>  
 
</table
</body>
</html>

Result

How to define define a table in HTML
How to define define a table in HTML

Leave a Comment