Tables
scope="rowgroup"
Associates a header cell with a row group, such as a tbody containing related rows. The header must be anchored in a row group; ensure the table layout expresses that grouping. 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="rowgroup"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| scope | keyword | Associates a header cell with a row group, such as a tbody containing related rows. The header must be anchored in a row group; ensure the table layout expresses that grouping. |
Working Example
Example Snippethtml
<table> <caption>Stock by group</caption> <tbody> <tr> <th scope="rowgroup" rowspan="2">Office</th> <th scope="row">Pens</th> <td>12</td> </tr> <tr> <th scope="row">Paper</th> <td>5</td> </tr> </tbody></table>