Tables · Tabelas
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 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).
Português
Tabelas
- Uma tabela mostra informações em linhas e colunas.
- Comece com
<table>. - Cada linha é um
<tr>(linha de tabela).
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.
Português
Células
- Dentro de cada linha, cada célula é um
<td>(dados de tabela). - Para uma célula de cabeçalho, como um título de coluna, use
<th>— ela aparece em negrito. - Dê a cada linha o mesmo número de células.
<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.
Português
Erros comuns
- Células (
<td>) ficam dentro de linhas (<tr>). - Use
<th>para células de cabeçalho.
English
Now you try
- A table is rows (
<tr>) holding cells (<td>or<th>). - Build a small table, then add a header cell.
Português
Agora você tenta
- Uma tabela é linhas (
<tr>) contendo células (<td>ou<th>). - Construa uma pequena tabela, depois adicione uma célula de cabeçalho.
Make a table with two rows. Each row is a <tr>, and put a <td> cell inside each row. · Faça uma tabela com duas linhas. Cada linha é um <tr> e coloque uma célula <td> dentro de cada linha.
Add a header cell so the column has a title. Use <th> instead of <td> for it. · Adicione uma célula de cabeçalho para que a coluna tenha um título. Use <th> em vez de <td> para ela.