HTML

[attribute] HTML - headers 속성 - 관련된 헤더셀ID 목록 지정 (= headers속성 = 헤더스속성/헤더즈속성/헤덜스속성)

목차
  1. headers 예제 - <td> 경우
  2. headers 정의
  3. headers 구문
  4. headers 예제 - <th> 경우

 

headers 예제 - <td> 경우

 

<style>

table, th, td {

  border: 1px solid black; text-align:center;

}

</style>


<table style="width:100%">

  <tr>

    <th id="name">사이트명</th>

    <th id="host">주소</th>

    <th id="open">오픈년도</th>

    <th id="intro">소개</th>

  </tr>

  <tr>

    <td headers="name">홈짱닷컴</td>

    <td headers="host">Homzzang.com</td>

    <td headers="open">2012</td>

    <td headers="intro">홈페이지 제작관리강의</td>

  </tr>

</table>

 

결과보기

 

headers 정의

 

해당 셀이 관련된 하나 이상의 헤더셀ID를 공백으로 구분 나열해 지정.

 


 

1.

외관적으로는 영향 없으나, 스크린리더기 사용 경우엔 영향 있음.

 

2. headers 속성 사용 가능 태그 종류

<td>, <th>

 

3.

주요 최신 브라우저 모두 지원.

 

 

headers 구문

 

  • <td headers="header_id">
  • <th headers="header_id">

 


[속성값]

 

header_id

해당 셀이 관련된 하나 이상의 헤더셀 ID를 공백으로 구분 나열. (예: a b)

 

 

headers 예제 - <th> 경우

 

<style>

table, th, td {

  border: 1px solid black;

}

</style>


<table>

  <tr>

    <th id="name" colspan="2">이름</th>

  </tr>

  <tr>

    <th headers="name" id="first">성</th>

    <th headers="name" id="last">이름</th>

  </tr>

  <tr>

    <td headers="name first">홍</td>

    <td headers="name last">길동</td>

  </tr>

</table>

 

결과보기

 


분류 제목
attribute HTML - href 속성 ★ - (이동할 페이지 / 관련 리소스) URL 주소 지정 (= href속성 = …
attribute HTML - hreflang 속성 - 연결문서 언어 지정 (= hreflang속성 = 흐레프랭속성/허프랭속성…
attribute HTML - http-equiv 속성 - content 속성의 정보/값에 대한 HTTP 헤더 제공 (= ht…
attribute HTML - id 속성 ★★★★★ - 요소 고유식별자 지정 (= id속성 = 아이디속성) ※ CSS 아이디선…
attribute HTML - ismap 속성 - 이미지를 서버측 이미지맵으로 지정 (= ismap속성 = 이즈맵속성)
attribute HTML - kind 속성 - 텍스트트랙 종류 지정 (= kind속성 = 카인드속성) ※ 트랙종류
attribute HTML - label 속성 - 요소에 대한 꼬리표 지정 (= label속성 = 레이블속성/라벨속성)
attribute HTML - lang 속성 - 요소 내용 언어코드 지정 (= lang속성 = 랭속성)
attribute HTML - list 속성 - 인풋에 입력 가능한 데이터리스트 지정 (= list속성 = 리스트속성) ※ 입…
attribute HTML - loop 속성 - 미디어(오디오/비디오) 반복재생 지정 (= loop속성 = 루프속성)
attribute HTML - low 속성 - <meter>에서 낮다 생각되는 값 지정 (= low속성 = 로우속성) ※ 게이…
attribute HTML - max 속성 - (숫자|날짜)의 최대값 지정 (= max속성 = 맥스속성) ※ 최댓값
attribute HTML - maxlength 속성 ★ - 입력 가능한 최대 글자 개수 지정 (= maxlength속성 = …
attribute HTML - media 속성 - 링크된 웹문서가 어떤 미디어/기기에 최적화 된 상태인지 표시 (= media…
attribute HTML - method 속성 ★★★ - 폼데이터 전송방식 지정 (= method속성 = 메서드속성/메소드속…
4/12
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티
웹유틸
회원센터
홈짱닷컴 PC버전 로그인