Image

HTML & CSS - HTML TABLES - Table heading in html

Table heading in html

Table heading in html
<th> tag is used to define the table heading.
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
th, td {
    padding: 5px;
}
</style>
</head>
<body>
<table style="width:100%">
  <tr>
    <th>Web programing</th>
    <th>Dextop programing</th>		
    </tr>
  <tr>
    <td>Html</td>
    <td>java</td>		
      </tr>
  <tr>
    <td>php</td>
    <td>C#.NET</td>		
   </tr>
</table>
</body>
</html>
O/P