Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
The <tr> tag defines a row in an HTML table.
The <td> (table data) or <th> (table header) tags can be used inside a <tr> tag.
Two attributes of the <tr> tag are: align (for horizontal alignment) and bgcolor (for background color).
The colspan attribute is used to merge two or more columns into a single cell.
The rowspan attribute merges two or more rows indicating that a cell should span vertically across multiple rows.
Content inside the <th> tag is bold and centered by default.
The <thead> tag groups the header rows of a table.
The <tfoot> tag is placed after <tbody> in the code and it defines the footer (summary or totals) section of the table.
The align attribute is used to horizontally align the content inside <td> or <th>.
Two global attributes that can be used are style and id.
The <tbody> tag represents the main data rows (body) of the table.
They group the header, body, and footer rows respectively, making tables easier to manage and improving accessibility.
No, the bgcolor attribute is outdated; it is better to use CSS for background color.
The cellpadding attribute controls the space between the cell border and its content.
You should use the attribute colspan with value 2: colspan="2".
You should use the <caption> tag for the main heading above the table.
<th> is specialized for header cells, making them bold and centered by default and improving accessibility for screen readers.
You can merge two rows using the rowspan attribute in <td> or <th>: rowspan="2".
<col> is not used to organize groups of rows; it defines column properties.
The typical order is: <thead>, followed by <tbody>, then <tfoot>.