Lesson 10
+25 XP
HTML Basics

HTML Tables Intro

Learn how to create tables to organize data in rows and columns

📊

What Are Tables?

Tables let you organize information into rows and columns, like a spreadsheet. They're perfect for displaying data that naturally fits into a grid.

Code Example:

📄 html
1
2
3
4
5
6
7
8
9
10
11
<!-- A simple table --><table>  <tr>    <td>Row 1, Cell 1</td>    <td>Row 1, Cell 2</td>  </tr>  <tr>    <td>Row 2, Cell 1</td>    <td>Row 2, Cell 2</td>  </tr></table>

Tables use <table> to create the table, <tr> for each table row, and <td> for each table data cell.