Home >> HTML 5 >> What is Table Headers in HTML 5

What is Table Headers in HTML 5

HTML table headers are defined with th elements.
 
Example
<!Doctype Html>  
<html>     
<head>      
       <title>Table Headers</title>
</head>  
<body>   
<table width="200" height="200" border="1">
    <tr>
        <th>Name</th>
        <th>Age</th>
    </tr>
    <tr>
        <td>Ram</td>
        <td>22</td>
    </tr> 
    <tr>
        <td>Shyam</td>
        <td>24</td>
    </tr>
</table>
</body>  
</html>  
Name Age
ram 22
shyam 24

Post Your Comment

Next Questions
What is Table Padding and Spacing
What is Table Colspan and Rowspan
What is Table Styling
What is Table Colgroup
How many type of Lists
What is Unordered Lists
What is Ordered Lists
What is Block and Inline Elements
What is HTML class Attribute
What is HTML id Attribute
What is HTML Iframes
What is HTML JavaScript
What is HTML File Paths
What is HTML Head Element
What is HTML Layout
What is HTML Responsive Website Design
What is HTML Forms
What is HTML Form Attributes
What is HTML Form Elements
What is HTML Input Types
What is HTML Input Attributes
What is HTML Input form attributes
What is HTML SVG Graphics
What is HTML Multimedia
What is HTML Video

Copyright ©2022 coderraj.com. All Rights Reserved.