Tables

scope="row"

Associates a header cell with the data cells in its row. Suitable for row labels such as product names in a comparison table. On th only; missing or invalid value uses automatic header association. For complex tables consider explicit headers and id associations.

Formal Syntax & Structure

html syntaxhtml
scope="row"

Parameters & Attributes

NameTypeDescription
scopekeywordAssociates a header cell with the data cells in its row. Suitable for row labels such as product names in a comparison table.

Working Example

Example Snippethtml
<table>  <caption>Stock</caption>  <tr>    <th scope="row">Pencils</th>    <td>12</td>  </tr></table>
HTML Reference