HTML <th> omvang kenmerk
Voorbeeld
Spesifiseer dat die twee kopselle opskrifte vir kolomme is:
<table>
<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>
Definisie en gebruik
Die scope
kenmerk spesifiseer of 'n kopsel 'n kopskrif vir 'n kolom, ry of groep kolomme of rye is.
Let wel: Die scope
kenmerk het geen visuele effek in gewone webblaaiers nie, maar kan deur skermlesers gebruik word.
Blaaierondersteuning
Attribute | |||||
---|---|---|---|---|---|
scope | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<th scope="col|row|colgroup|rowgroup">
Eienskapwaardes
Value | Description |
---|---|
col | Specifies that the cell is a header for a column |
row | Specifies that the cell is a header for a row |
colgroup | Specifies that the cell is a header for a group of columns |
rowgroup | Specifies that the cell is a header for a group of rows |
❮ HTML <de> merker