• 회원가입
  • 로그인
  • 구글아이디로 로그인

[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 - onplaying 속성 - (오디오/비디오) 재생 중 실행 (= onplaying속성 = 온플레…
attribute HTML - title 속성 ★ - 요소애 대한 추가 정보 지정 (= title속성 = 타이틀속성)
attribute HTML - onsubmit 속성 ★ - 폼데이터 제출 시 실행 (= onsubmit속성 = 온서브미트속성/…
attribute HTML - enctype 속성 - 폼데이터 인코딩방식 지정 (= enctype속성 = 인크타입속성/잉크타입…
attribute HTML - ondragleave 속성 - 드래그 한 요소가 드롭박스 이탈 시 실행 (= ondragleav…
form HTML - <input type="radio"> 태그 - 오직 1개의 요소만 선택 (= 인풋라디오타입/라디…
attribute HTML - ononline 속성 - 브라우저가 온라인으로 작동할 때 실행 (= ononline속성 = 온온…
attribute HTML - onseeked 속성 - (오디오/비디오) 재생위치 변경 종료 시, 실행할 코드 지정. (= o…
attribute HTML - src 속성 ★ - 외부 리소스 URL주소 지정 (= src속성 = 에스알시속성/에스알씨속성/소…
attribute HTML - cellspacing 속성 - 테이블셀간의 간격 지정 (= cellspacing속성 = 셀스페이…
attribute HTML - onemptied 속성 - 미디어 소스가 비어있거나 삭제된 경우에 실행 (= onemptied속…
attribute HTML - onabort 속성 - 미디어 파일 로드 중단 이벤트 발생 시 실행할 코드 정의 (= onabo…
attribute HTML - srclang 속성 - 트랙태그 소스의 언어코드 지정 (= srclang속성 = 에스알시랭속성/…
attribute HTML - form 속성 - 해당 요소가 속하는 폼요소 지정 (= form속성 = 폼속성) ※ 폼 밖에 위…
attribute HTML - onpageshow 속성 - 사용자가 웹페이지 탐색 시 실행 (= onpageshow속성 = 온…
form HTML - <input type="hidden"> 태그 - 숨겨진 입력 필드 지정 (= 사용자 몰래 입력값…
attribute HTML - label 속성 - 요소에 대한 꼬리표 지정 (= label속성 = 레이블속성/라벨속성)
attribute HTML - headers 속성 - 관련된 헤더셀ID 목록 지정 (= headers속성 = 헤더스속성/헤더즈…
attribute HTML - onstalled 속성 - (오디오/비디오) 이용불가 (=사용불가) 시 실행 (= onstall…
attribute HTML - rel 속성 ★ - 링크문서가 현재문서와 어떤 관계인지 지정 (= rel속성 = 릴속성/렐속성)
2/18
목록
찾아주셔서 감사합니다. Since 2012