--- title: Tables --- ### Defining an HTML Table An HTML table is defined with the `
| ` tag. By default, table headings are bold and centered. * A table data/cell is defined with the ` | ` tag. The cells can contain all types of HTML elements such as text, images, lists, tables, etc.
A more complex HTML table may also include ` | |
|---|---|---|
| Firstname | Lastname | Age |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| Item | Amount |
|---|---|
| Peach | 15 |
| Watermelon | 3 |
| Apple | 10 |
| Item | Amount |
|---|---|
| Peach | 15 |
| Watermelon | 3 |
| Apple | 10 |
| Firstname | Lastname | Age |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson |
| Firstname | Lastname | Age |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 50 |
| Total: 2 Response | ||
| Fruits | Quantity |
|---|---|
| Apple | 2 |
| Fruits | Quantity |
|---|---|
| Apple | 2 |
| Fruits | Quantity |
|---|---|
| Apple | 2 |
| Fruits | Quantity |
|---|---|
| Apple | 2 |
| Fruits | Quantity |
|---|---|
| Apple | 2 |
| Fruits | Quantity |
|---|---|
| Apple | 2 |