Tables

HTML tables use various tags to structure and format tabular data. Here's a quick overview of the most important tags used in HTML tables:

Table Tags

Tag Short Meaning
<table> Main table container
<tr> Table Row
<th> Table Header (bold & centered)
<td> Table Data cell
<caption> Table Title (top of table)
<colgroup> Group of columns for styling
<col> Style individual columns
<thead> Header section of table
<tbody> Main content rows
<tfoot> Footer (bottom summary)

Basic Table Example

Output :

Table Data

Output :

Table Header

Output :