<th> marks table header

The th element marks a header cell.

 
<!DOCTYPE HTML> 
<html> 
<head> 
<title>Example</title> 
</head> 
<body> 
    <table> 
        <tr> 
            <th>Column Header</th><th>Column Header</th><th>Column Header</th><th>Column Header</th> 
        </tr> 
        <tr> 
            <th>Row Header:</th><td>A</td><td>B</td><td>C</td> 
        </tr> 
        <tr> 
            <th>Row Header:</th><td>A</td><td>B</td><td>C</td> 
        </tr> 
        <tr> 
            <th>Row Header:</th><td>test test test test test  </td><td>test test test test test </td><td>test test test test test test test test test </td> 
        </tr> 
    </table> 
</body> 
</html>
  
Click to view this demo.
Home 
  HTML CSS Book 
    HTML  

th:
  1. <th> marks table header
  2. Associating Headers with Cells
Related: