Name
SCOPE — NN n/a IE n/a HTML 4
Synopsis
SCOPE=”scopeConstant"Optional
The range of cells (relative to the current cell) that behave as
though the current cell is the header for those cells. For tables
whose structure is quite regular, the SCOPE
attribute is a simpler way of achieving what the
HEADERS attribute does, without having to define
ID attributes for the header cells.
Example
<TR> <TH SCOPE="col">Product Number <TH SCOPE="col">Description </TR> <TR> <TD>0392 <TD>Round widget </TR>
Value
One of four recognized scope constants:
-
col Current cell text becomes header text for every cell in the rest of the column.
-
colgroup Current cell text becomes header text for every cell in the rest of the
COLGROUPelement.-
row Current cell text becomes header text for every cell in the rest of the
TRelement.-
rowgroup Current cell text becomes header text for every cell in the rest of the
TBODYelement.
Default
None.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access