T1A01 — HTML Tables
HTML tables organize information into rows and columns. These examples build from a basic two-cell row to tables containing more information, images, and links.
Example 1: A basic table
Two pieces of information
A 1
Example 2: Multiple rows
Letters and numbers
Number Letter
1 A
2 B
Example 3: Adding another column
Three-column table
Number Letter Word
1 A yes
2 B hello
Example 4: Tables with images
Project artwork
Number Letter Name / image
1 A Celestans
2 B
3 C
4 D
Example 5: A table containing a link
What to notice
<table> creates a table.
<tr> creates a row.
<th> creates a heading cell.
<td> creates a regular data cell.
<caption> gives the table a description.
Challenge
Add a new row to the project artwork table with a number, letter, and a short description. Then add a fourth column that describes the item type.
← Back to GameDev Home