Latest web development tutorials

HTML th atributo scope

HTML th tag Manual de Referência tag HTML <th>

Exemplos

A célula de dois cabeçalho é definido como um cabeçalho de coluna:

<table border="1">
<tr>
<th></th>
<th scope="col">Month</th>
<th scope="col">Savings</th>
</tr>
<tr>
<td>1</td>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>2</td>
<td>February</td>
<td>$80</td>
</tr>
</table>

tente »

Suporte a navegadores

Internet ExplorerFirefoxOperaGoogle ChromeSafari

atributo scope sem efeitos visuais em um navegador da Web comum, mas você pode usar leitores de tela.


Definição e Uso

atributo scope especifica se uma célula de cabeçalho é um grupo cabeçalho da coluna, linha, coluna ou grupo de linhas.


Diferenças entre HTML 4.01 e HTML5

Nenhum.


gramática

<th scope="col|row|colgroup|rowgroup">

Valor de propriedade

描述
col 规定单元格是列的表头。
row 规定单元格是行的表头。
colgroup 规定单元格是列组的表头。
rowgroup 规定单元格是行组的表头。


HTML th tag Manual de Referência tag HTML <th>