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

[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 - srcset 속성 - 다른 환경에서 적용할 이미지소스 지정 (= srcset속성 = 에스알시셋속…
attribute HTML - low 속성 - <meter>에서 낮다 생각되는 값 지정 (= low속성 = 로우속성) ※ 게이…
attribute HTML - reversed 속성 - 순서있는 리스트 스타일 타입을 역순(=내림차순)으로 표시 (= reve…
attribute HTML - hreflang 속성 - 연결문서 언어 지정 (= hreflang속성 = 흐레프랭속성/허프랭속성…
attribute HTML - oncanplay 속성 - 재생 시작 가능 시 실행 (= oncanplay속성 = 온캔플레이속성…
attribute HTML - max 속성 - (숫자|날짜)의 최대값 지정 (= max속성 = 맥스속성) ※ 최댓값
attribute HTML - height 속성 - 요소 높이 지정 (= height속성 = 하이트속성)
attribute HTML - ismap 속성 - 이미지를 서버측 이미지맵으로 지정 (= ismap속성 = 이즈맵속성)
attribute HTML - step 속성 - 입력 가능 숫자 간격 설정 (= step속성 = 스텝속성) ※ 입력 가능 배수…
attribute HTML - onloadstart 속성 - 미디어 로드 시작 시 실행 (= onloadstart속성 = 온…
attribute HTML - selected 속성 ★ - 실렉트태그 기본 선택 옵션 지정 (= selected속성 = 실렉티…
attribute HTML - rowspan 속성 ★ - 테이블셀 가로행 병항 (= 가로줄 병합 = rowspan속성 = 로우…
attribute HTML - href 속성 ★ - (이동할 페이지 / 관련 리소스) URL 주소 지정 (= href속성 = …
attribute HTML - ondragenter 속성 - 드래그 한 요소가 드롭박스에 들어갈 때 실행 (= ondragen…
attribute HTML - onkeypress 속성 - [페기예고] 키보드키 눌렀을 때 실행 (= onkeypress속성 …
attribute HTML - onloadeddata 속성 - 미디어 로드되고 준비 완료 시 실행 (= onloadeddata…
attribute HTML - muted 속성 - (오디오/비디오) 묵음 처리 (= muted속성 = 뮤티드속성) ※ 소리 안…
attribute HTML - disabled 속성 - 요소 비활성화 지정 (= disabled속성 = 디스에이블드속성|디세이…
attribute HTML - loop 속성 - 미디어(오디오/비디오) 반복재생 지정 (= loop속성 = 루프속성)
attribute HTML - onwaiting 속성 - (오디오/비디오) 다음 프레임 버퍼 위해 재생 멈출 때 실행 (= o…
5/18
목록
찾아주셔서 감사합니다. Since 2012