HTML <th> 헤더 속성

❮ HTML <th> 태그

예시

각 헤더 셀과 관련된 <th> 요소를 지정합니다.

<table>
  <tr>
    <th id="name" colspan="2">Name</th>
  </tr>
  <tr>
    <th headers="name">Firsname</th>
    <th headers="name">Lastname</th>
  </tr>
</table>

정의 및 사용

속성 은 headers헤더 셀과 관련된 하나 이상의 헤더 셀을 지정합니다.

참고: 속성 headers은 일반 웹 브라우저에서 시각적 효과가 없지만 화면 판독기에서는 사용할 수 있습니다. 


브라우저 지원

Attribute
headers Yes Yes Yes Yes Yes

통사론

<th headers="header_id">

속성 값

Value Description
header_id Specifies a space-separated list of id's to one or more header cells the header cell is related to

❮ HTML <th> 태그