Tables

scope="col"

Associates a header cell with data cells in its column. Use for simple column headings such as quantity or price. 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="col"

Parameters & Attributes

NameTypeDescription
scopekeywordAssociates a header cell with data cells in its column. Use for simple column headings such as quantity or price.

Working Example

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