HTML TD 스코프 속성
예
다음과 같은 두 가지 예는 <일> 요소는 열 머리글로 식별, 두 <일> 요소는 행 머리글로 식별됩니다 :
<table border="1">
<tr>
<th></th>
<th scope="col">Month</th>
<th scope="col">Savings</th>
</tr>
<tr>
<td scope="row">1</td>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td scope="row">2</td>
<td>February</td>
<td>$80</td>
</tr>
</table>
<tr>
<th></th>
<th scope="col">Month</th>
<th scope="col">Savings</th>
</tr>
<tr>
<td scope="row">1</td>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td scope="row">2</td>
<td>February</td>
<td>$80</td>
</tr>
</table>
»시도
브라우저 지원
범위는 일반 웹 브라우저에서 시각적 효과 속성,하지만 당신은 화면 판독기를 사용할 수 있습니다.
정의 및 사용
HTML5는 <TD> 범위 속성을 지원하지 않습니다.
스코프 속성은 데이터 유닛이 연관되어있는 테이블 방식의 헤드 유닛의 형태를 정의한다.
스코프 속성은 셀 열, 행, 열 또는 행 그룹 헤더 그룹인지 여부를 식별한다.
문법
<td scope="col|row|colgroup|rowgroup">
속성 값
值 | 描述 |
---|---|
col | 规定单元格是列的表头。 |
row | 规定单元格是行的表头。 |
colgroup | 规定单元格是列组的表头。 |
rowgroup | 规定单元格是行组的表头。 |
HTML <TD> 태그