Tabelas
Esta página precisa de um navegador recente (com suporte a SharedArrayBuffer). Por favor, atualize Chrome, Edge, Firefox ou Safari para a versão mais recente.
English
Tables
- A table shows information in rows and columns.
- Start with
<table>. - Each row is a
<tr>(table row).

English
Cells
- Inside each row, each cell is a
<td>(table data). - For a heading cell, like a column title, use
<th>— it shows in bold. - Give every row the same number of cells.
English
<table>
<tr><th>Fruit</th><th>Colour</th></tr>
<tr><td>Apple</td><td>Red</td></tr>
<tr><td>Banana</td><td>Yellow</td></tr>
</table>
English
Common mistakes
- Cells (
<td>) go inside rows (<tr>). - Use
<th>for header cells.
English
Now you try
- A table is rows (
<tr>) holding cells (<td>or<th>). - Build a small table, then add a header cell.
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
Make a table with dois rows. Each row is a <tr>, and put a <td> cell inside each row.
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
Add a header cell so the column has a title. Use <th> instead of <td> for it.
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
Build a full table: a header row with two <th> cells, Name e Score, then dois data rows of <td> cells.