Introduction
Tables can be used to present data in a structured format. The basic component of any table is a table row (
| ) and the second row contains two data cells ( | ).
Adding More RowsTo add more rows to the table, we need to add more | |
|---|---|---|
| element to create header cells in the table. Header cells are typically used to describe the content of the columns. To add a header cell to the first column, replace the first | element in the second row with the following code:
The | element specifies that this is a header cell for the first row.
SummaryIn this lab, we learned how to create HTML table rows and customize the table using CSS. We also learned how to merge adjacent rows and create header cells in the table. With these skills, you can now create beautiful and structured tables for your web pages. |



