Latest web development tutorials

범위 속성 번째 HTML

HTML 번째 태그 참조 설명서 HTML <일> 태그

두 헤더 셀은 열 헤더로 정의된다 :

<table border="1">
<tr>
<th></th>
<th scope="col">Month</th>
<th scope="col">Savings</th>
</tr>
<tr>
<td>1</td>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>2</td>
<td>February</td>
<td>$80</td>
</tr>
</table>

»시도

브라우저 지원

Internet ExplorerFirefoxOperaGoogle ChromeSafari

범위는 일반 웹 브라우저에서 시각적 효과 속성,하지만 당신은 화면 판독기를 사용할 수 있습니다.


정의 및 사용

범위 속성은 헤더 셀은 열, 행, 열 또는 행 그룹 머리글 그룹인지 여부를 지정합니다.


HTML 4.01과 HTML5의 차이점

없음.


문법

<th scope="col|row|colgroup|rowgroup">

속성 값

描述
col 规定单元格是列的表头。
row 规定单元格是行的表头。
colgroup 规定单元格是列组的表头。
rowgroup 规定单元格是行组的表头。


HTML 번째 태그 참조 설명서 HTML <일> 태그