HTML 사전

thead

설명

The HTML Table Head Element (<thead>) defines a set of rows defining the head of the columns of the table.

<thead>는 표의 열 제목으로 구성된 행의 집합을 나타낸다.

Usage Context

Permitted content Zero or more <tr> elements.
Tag omission The start tag is mandatory. The end tag may be omitted if the <thead> element is immediately followed by a <tbody> or <tfoot> element.
Permitted parent elements  A <table> element. The <thead> must appears after any <caption> or <colgroup> element, even implicitly defined, but before any <tbody>, <tfoot> and <tr> element.
Normative document HTML5, section 4.9.6 (HTML4.01, section 11.2.3)

속성

이 엘리먼트는 전역속성을 지원한다.

align - Deprecated in HTML 4.01, Obsolete in HTML5

This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:
 •left, aligning the content to the left of the cell
 •center, centering the content in the cell
 •right, aligning the content to the right of the cell
 •justify, inserting spaces into the textual content so that the content is justified in the cell
 •char, aligning the textual content on a special character with a minimal offset, defined by the char and charoff attributes Unimplemented (see bug 2212 ) .
 
If this attribute is not set,  the left value is assumed.

Note : Do not use this attribute as it is obsolete (not supported) in the latest standard.
 •To achieve the same effect as the left, center, right or justify values, use the CSS text-align property on it.
 •To achieve the same effect as the char value, in CSS3, you can use the value of the char as the value of the text-align property Unimplemented .

align - HTML 4.01에서 폐지예정, HTML5에서 폐지됨

이 열거 속성은 각 셀 내용의 가로 맞춤을 어떻게 다루는지 명시한다. 이 속성은 아래의 값을 가진다 :
 •left, 내용을 셀의 왼쪽으로 맞춤
 •center, 내용을 셀의 가운데로 맞춤
 •right, 내용을 셀의 오른쪽으로 맞춤
 •justify, 본문 내용에 공백을 넣어 내용을 셀의 양쪽으로 맞춤
 •char, 문자들 사이에 char와 cahroff 속성에서 정의된 문자로 기본간격에 맞게 채워넣는다. 미구현 (2212번 버그를 참조).
 
이 속성이 언급되어 있지 않으면 왼쪽 맞춤 됨. 

참조 : 최종 표준안에서 폐지되어 더이상 지원을 안하기 때문에 이 요소를 사용하지 말자.
 •왼쪽, 가운데, 오른쪽, 양쪽맞춤과 동일한 효과를 얻으려면 CSS의 text-align 속성을 이용하라.
 •CSS3에서 char와 동일한 효과를 얻으려면 text-align 속성 Unimplemented를 사용하자.

bgcolor - Non-standard

This attribute defines the background color of each cell of the column. It is one of the 6-digit hexadecimal code as defined in sRGB, prefixed by a '#'.

Usage note : Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: the <thead> element should be styled using CSS. To give a similar effect to the bgcolor attribute, use the CSS property background-color, on the relevant <td> or <th> elements.

bgcolor - 비표준

이 속성은 각 컬럼 셀의 배경색을 정의한다. sRGB에서 정의된 6자리 16진수코드로 앞에 "#"이 붙는다. 
(예)

참고 : MS 익스플로러 특정 버전에서만 적용되는 비표준이므로 사용하지 말자. <thead>요소는 CSS를 이용해 모양을 내야한다. bgcolor 속성과 동일한 효과를 얻으려면 <td> 또는 <th> 요소에 CSS의 background-color 속성을 이용하라.

char - Deprecated in HTML 4.01, Obsolete in HTML5

This attribute is used to set the character to align the cells in a column on. Typical values for this include a period (.) when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored.

Note : Do not use this attribute as it is obsolete (and not supported) in the latest standard. To achieve the same effect as the char , in CSS3, you can use the character set using the char attribute as the value of the text-align property Unimplemented .

char - HTML 4.01에서 폐지예정, HTML5에서 폐지됨

이 속성은 표의 행에 속한 모든 항목들을 align(줄맞춤)을 char로 할때 사용할 특정 문자를 설정 한다. 특별한 숫자나 돈계산을 위한 표에서 마침표(.) 등으로 자리수 계산을 확실히 하고 싶을 때 사용하면 된다. align을 char로 설정하지 않은 경우 이 값은 무시된다.

참고: 최종 표준안에서 폐지되어 더이상 지원을 안하기 때문에 이 요소를 사용하지 말자.
같은 효과를 위해 CSS3의 text-align 특성(property)과 char 속성(attribute)값을 사용하자.

charoff - Deprecated in HTML 4.01, Obsolete in HTML5

This attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char attribute.

Note : Do not use this attribute as it is obsolete (and not supported) in the latest standard.

charoff - HTML 4.01에서 폐지예정, HTML5에서 폐지됨

이 속성은 자료들에 몇개 문자마다 char 속성에서 지정된 문자를 집어 넣을지 설정한다.

참고: 최종 표준안에서 폐지되어 더이상 지원을 안하기 때문에 이 요소를 사용하지 말자.

valign - Deprecated in HTML 4.01, Obsolete in HTML5

This attribute specifies the vertical alignment of the text within each row of cells of the table header. Possible values for this attribute are:
 •baseline, which will put the text as close to the bottom of the cell as it is possible, but align it on the baseline of the characters instead of the bottom of them. If characters are all of the size, this has the same effect as bottom.
 •bottom, which will put the text as close to the bottom of the cell as it is possible;
 •middle, which will center the text in the cell;
 •and top, which will put the text as close to the top of the cell as it is possible.

Note : Do not use this attribute as it is obsolete (and not supported) in the latest standard: instead set the CSS  vertical-align property on it.

valign - HTML 4.01에서 폐지예정, HTML5에서 폐지됨

이 속성은 표의 각 열에서 글자의 세로 맞춤을 정의한다. 이 속성은 아래의 값을 가짐 : 
 •baseline, 가능한 셀의 아래쪽에 글을 배치하지만 셀의 바닥이 아닌 글자가 기준이 된다. 만약 글자크기가 모두 동일하다면 bottom 효과와 동일하다. 
 •bottom, 가능한 셀의 아래쪽에 글을 배치한다.
 •middle, 셀의 가운데에 글을 배치한다.
 •top, 가능한 셀의 위쪽에 글을 배치한다.

참고: 최종 표준안에서 폐지되어 더이상 지원을 안하기 때문에 이 요소를 사용하지 말자.
대신 CSS의 vertical-align 속성을 이용하라.

예제

See <table> for examples on <thead>.
<table>의 <thead> 예제 참조

DOM Interface

This element implements the HTMLTableSectionElement interface.
DOM의 인터페이스 중 HTMLElement를 구현했다. DOM은 HTML을 프로그래밍적으로 제어하기 위한 표준이다.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원 1.0 1.0 (1.7 or earlier) 지원 지원 지원
align/valign attribute 1.0 bug 915 지원 지원 지원
char/charoff attribute 1.0 bug 2212 지원 지원 지원
bgcolor attribute
Non-standard
    지원    
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원 지원 1.0 (1.0) 지원 지원 지원
align/valign attribute   bug 915      
char/charoff attribute   bug 2212      
bgcolor attribute
Non-standard
    지원    

참고

댓글

댓글 본문
버전 관리
aniona
현재 버전
선택 버전
graphittie 자세히 보기