Menu

Sobre Acessibilidade na web

Guia para tornar páginas web acessíveis

Sobre este sítio

Conteúdo
Guia para tornar páginas web acessíveis

Tabelas

Recomendação

Html/Xhtml

Exemplo 1

NOTAS
Alunos Português Matemática
Paulo 7 8
Marcos 6 9
Rosa 10 7
<table>
<caption>NOTAS</caption>
   <tr>
   <th scope="col">Alunos</th>
   <th scope="col">Portugu&ecirc;s</th>
   <th scope="col">Matem&aacute;tica</th>
   </tr>
   <tr>
   <th scope="row">Paulo</th>
   <td>7</td>
   <td>8</td>
   </tr>
   <tr>
   <th scope="row">Marcos</th>
   <td>6</td>
   <td>9</td>
   </tr>
   <tr>
   <th scope="row">Rosa</th>
   <td>10</td>
   <td>7</td>
   </tr>
</table>

Exemplo 2

NOTAS
Grupos Alunos Português Matemática
A Paulo 7 8
Marcos 6 9
B Rosa 10 7
<table>
<caption>NOTAS</caption>
   <tr>
   <th id="grupo">Grupo</th>
   <th id="alunos">Alunos</th>
   <th id="portugues">Português</th>
   <th id="matematica">Matemática</th>
   </tr>
   <tr>
   <th id="a" rowspan="2">A</th>
   <th id="paulo">Paulo</th>
   <td headers="a paulo portugues">7</td>
   <td headers="a paulo matematica">8</td>
   </tr>
   <tr>
   <th id="marcos">Marcos</th>
   <td headers="a marcos portugues">6</td>
   <td headers="a marcos matematica">9</td>
   </tr>
   <tr>
   <th id="b">B</th>
   <th id="rosa">Rosa</th>
   <td headers="b rosa portugues">10</td>
   <td headers="b rosa matematica">7</td>
   </tr>
</table>

Exemplo 3

NOTAS
Grupo principais Alunos Matérias
Português Matemática
Total por matéria 7,6 8
A Paulo 7 8
Marcos 6 9
B Rosa 10 7
<table
summary="Tabela contendo notas por grupo em 
relação a alunos e matérias.">

<caption>NOTAS</caption>

<thead>
<tr>
<th id="grupo" rowspan="2">
   Grupos principais</th>
<th id="alunos" rowspan="2">Alunos</th>
<th id="materias" colspan="2">Matérias</th>
</tr>
<tr>
<th id="portugues">Português</th>
<th id="matematica">Matemática</th>
</tr>
</thead>

<tfoot>
<th id="total" colspan="2">Total por 
   matéria</th>
<td headers="total">7,6</td>
<td headers="total">8</td>
</tfoot> 

<tbody>
<tr>
<th id="a" rowspan="2">A</th>
<th id="paulo">Paulo</th>
<td headers="a paulo portugues">7</td>
<td headers="a paulo matematica">8</td>
</tr>
<tr>
<th id="marcos">Marcos</th>
<td headers="a marcos portugues">6</td>
<td headers="a marcos matematica">9</td>
</tr>
</tbody> 

<tbody> 
<tr>
<th id="b">B</th>
<th id="rosa">Rosa</th>
<td headers="b rosa portugues">10</td>
<td headers="b rosa matematica">7</td>
</tr>
</tbody>

</table>

Referência WCAG 1.0

Imprimir esta página