How do you create a header for a < table > in HTML?

 How do you create a header for a table in HTML?


For creating table header in HTML

use the <th>…</th> tag.


t stand for table 

h stand for header

Header for a table in HTML we use <th>...</th>


 A table header tag is surrounded by the table row <tr>…</tr>.

      r stand for row 

<tr>

            <th>Learning</th>

            <th>HTML</th>
       
  </tr>


 The <tr> tag is surrounded by the <table> tag. A table consist of a rows and columns, which can be set using one or more <tr>, <th>, and <td> elements

Comments

Last 7 Days

What is the syntax of src Attribute with < img > tag in HTML ?

How to write html code for email signature ?

How to use referrerpolicy Attribute value ( unsafe-url ) with < iframe > tag in HTML ? with example

How to use sandbox attribute value ( allow-popups-to-escape-sandbox ) with < iframe > tag in HTML ? with example

How to use comments in Solidity programming language ?

css for code blocks

What is HTML (Hyper text markup language) table ?