HTML <th> kapsamı Özellik

❮ HTML <th> etiketi

Örnek

İki başlık hücresinin sütun başlıkları olduğunu belirtin:

<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>

Tanım ve Kullanım

Nitelik scope, bir başlık hücresinin bir sütun, satır veya sütun veya satır grubu için bir başlık olup olmadığını belirtir.

Not: Özelliğin scopesıradan web tarayıcılarında görsel bir etkisi yoktur, ancak ekran okuyucular tarafından kullanılabilir. 


Tarayıcı Desteği

Attribute
scope Yes Yes Yes Yes Yes

Sözdizimi

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

Özellik Değerleri

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 <th> etiketi