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

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

Smart contract code for Anyone can send coins to each other without a need for registering with a username and password with help of Ethereum keypair

Why People Use iLovePDF Merger and Better Online Alternatives

Why People Use PDF Merger Tools for Document Management

How Artificial Intelligence Is Changing the World: A Complete Pro Guide

Why Converting PDF to Text Improves Productivity (With Examples)

How to Convert PNG to PDF Online (Free & Easy Method) | ThinkforU

Why Online Text Tools Are Important for Daily Work

How Text Conversion Tools Work and Why They Are Useful