TABLE MASTER CLASS /// LEARN GRIDS /// BUILD ROWS /// SEMANTIC DATA /// TABLE MASTER CLASS /// LEARN GRIDS /// BUILD ROWS /// SEMANTIC DATA /// TABLE MASTER CLASS /// LEARN GRIDS /// BUILD ROWS /// SEMANTIC DATA ///

HTML Tables

Structure your data. Learn how to build rows, columns, and headers for clear information display.

tables.html
1 / 11
1234567
📅

Tutor:Data often needs structure. HTML Tables allow you to arrange data into rows and columns. This is perfect for schedules, pricing lists, or datasets. We start with the <table> tag.


Skill Matrix

UNLOCK NODES BY MASTERING TABLES.

Concept: The Grid

Tables use a container table, rows tr, and cells td.

System Check

Which tag creates a new row?


Data Grid Network

Challenge: Big Data

ACTIVE

Created a complex financial table with merged cells? Share your markup.

HTML Tables & Data Grids

Author

Pascual Vila

Frontend Instructor // Code Syllabus

HTML Tables are the original way to display structured data. While not for layout, they are essential for datasets, schedules, and comparison charts.

The Container and Rows

Every table starts with <table>. Inside, we don't define columns directly. Instead, we define rows using <tr> (Table Row).

Data vs Headers

Inside a row, you place cells. Use <td> for standard data and <th> for headers. Headers are crucial for accessibility, allowing screen readers to understand the context of the data.

Merging Cells

To make a cell span multiple columns, use the colspan attribute. To span multiple rows, use rowspan. This allows for complex grid layouts within the data table.

View Full Transcript+

This section contains the detailed breakdown of the table lesson. It covers table, tr, td, and th usage. It also explains the semantic groups thead, tbody, and tfoot which are essential for long tables and printing styles.

Table Syntax Glossary

<table>
The wrapper element that defines the start and end of a data table.
<tr>
Table Row. Organizes content horizontally and contains th or td cells.
<th>
Table Header. Defines a cell as a header, making it bold and centered by default.
<td>
Table Data. The standard container for any type of data within a row.
colspan
Attribute used to make a cell span across multiple columns horizontally.
rowspan
Attribute used to make a cell span across multiple rows vertically.