0% found this document useful (0 votes)
13 views1 page

What Is A Table in HTML

A table in HTML is a structured representation of data organized in rows and columns, similar to a spreadsheet. Key elements include <tr> for rows, <td> for data cells, <th> for headings, and <caption>, <thead>, <tbody>, and <tfoot> for additional table structure. An example is provided demonstrating the use of <th> for table headings.

Uploaded by

azaanqarni00
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

What Is A Table in HTML

A table in HTML is a structured representation of data organized in rows and columns, similar to a spreadsheet. Key elements include <tr> for rows, <td> for data cells, <th> for headings, and <caption>, <thead>, <tbody>, and <tfoot> for additional table structure. An example is provided demonstrating the use of <th> for table headings.

Uploaded by

azaanqarni00
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

What is a Table in HTML?

A table is a representation of data arranged in rows and columns. Really, it's more like a
spreadsheet. In HTML, with the help of tables, you can arrange data like images, text, links
and so on into rows and columns of cells.

• <tr> - represents rows


• <td> - used to create data cells
• <th> - used to add table headings
• <caption> - used to insert captions
• <thead> - adds a separate header to the table
• <tbody> - shows the main body of the table
• <tfoot> - creates a separate footer for the table
An example with use of <th>
<table>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email Address</th>
</tr>
<tr>
<td>AZAN</td>
<td>BILAL</td>
<td>tables@[Link]</td>
</tr>
<tr>
<td>AZAN</td>
<td>QARNI</td>
<td>developer@[Link]</td>
</tr>
</table>

You might also like