<td>

td 要素 (HTML)

[1] HTMLtd 要素型は、 のデータこま (cell) をあらわします。

[4] 仕様書:

[2]

局所名
td
名前空間名
http://www.w3.org/1999/xhtml
開始タグ
必須
終了タグ
省略可能 (HTML 4), 必須 (XHTML 1)
内容模型
%flow*
出現できる文脈
tr 直下
属性
属性名属性値の型既定値説明状態出典
abbr%Text(なし)省略形[HTML 4]
align揃え[HTML 4] %cellhalign
axis#IDREF(なし)関連する見出し[HTML 4]
background%URI背景画像非標準
bgcolor背景色[HTML 4] 非推奨
bordercolor%Color境界色非標準
bordercolordark%Color境界色 (明色)非標準
bordercolorlight%Color境界色 (暗色)非標準
char揃える文字[HTML 4] %cellhalign
charoff揃える文字[HTML 4] %cellhalign
class[HTML 4] %coreattr
colspanNUMBER1列またぎ[HTML 4]
content
dir書字方向[HTML 4] %i18n
headersIDREFS(なし)見出しこま[HTML 4]
height高さ[HTML 4] 非推奨
csheight非標準
id一意識別子[HTML 4] %coreattr
istarget非標準Windows Live Spaces
lang自然言語[HTML 4] %i18n
xml:lang自然言語[XHTML1]
nowrap(真偽値属性)(偽)折返しなし[HTML 4] 非推奨
onclick[HTML 4] %events
ondblclick[HTML 4] %events
onkeydown[HTML 4] %events
onkeypress[HTML 4] %events
onkeyup[HTML 4] %events
onmousedown[HTML 4] %events
onmousemove[HTML 4] %events
onmouseout[HTML 4] %events
onmouseover[HTML 4] %events
onmouseup[HTML 4] %events
orientationpreference非標準Windows Live Spaces
rowspanNUMBER1行またぎ[HTML 4]
scope%Scope(なし)見出し適用範囲[HTML 4]
styleスタイル情報[HTML 4] %coreattr
title注釈的題[HTML 4] %coreattr
valign垂直配置[HTML 4] %cellvalign
width[HTML 4] 非推奨
xmlnshttp://www.w3.org/1999/xhtml 固定名前空間名W3C 勧告XHTML m12n
xposNUMBER非標準

状態

[8] HTMLElement の状態に加えて、

headers
DOMTokenList

歴史

[5] HTML 4DTD注釈宣言 (参考) には

TH is for headers, TD for data, but for cells acting as both use TD

と書かれています。

[3]

<TABLE summary="This table charts the number of cups
                   of coffee consumed by each senator, the type 
                   of coffee (decaf or regular), and whether 
                   taken with sugar.">
<CAPTION>Cups of coffee consumed by each senator</CAPTION>
<TR>
   <TH>Name</TH>
   <TH>Cups</TH>
   <TH>Type of Coffee</TH>
   <TH>Sugar?</TH>
<TR>
   <TD>T. Sexton</TD>
   <TD>10</TD>
   <TD>Espresso</TD>
   <TD>No</TD>
<TR>
   <TD>J. Dinnen</TD>
   <TD>5</TD>
   <TD>Decaf</TD>
   <TD>Yes</TD>
</TABLE>

(HTML 4 仕様書より)

レンダリング例:

    Cups of coffee consumed by each senator
   Name         Cups    Type of Coffee   Sugar?
T. Sexton    10         Espresso         No
J. Dinnen    5          Decaf            Yes

メモ

メモ

[6] (X)HTML5 Tracking ( 版) http://html5.org/tools/web-apps-tracker?from=3517&to=3518

[7] Merge the two table cell interfaces together · whatwg/html@e383ae2 ( 版) https://github.com/whatwg/html/commit/e383ae23776362cafb2fb4bbba70c8c9080d4b0f

[9] Editorial: Cross-reference DOM "child" where appropriate in rendering (zcorpan著, ) https://github.com/whatwg/html/commit/e8c91c05edc8d6cdb33fdd5452e052359d40490b

[10] Minutes [was: Agenda for 971023 HTML WG meeting] (Dan Connolly著, ) https://lists.w3.org/Archives/Public/w3c-wai-hc/1997OctDec/0160.html

RESOLVED: <li> and <td>, INS DEL have to be %flow;

(i.e. (%inline;|%block)*)

[11] Specifiy name and description rules for td, th and tr elements - issue … (asurkov著, ) https://github.com/w3c/html-aam/commit/7ef3eb19602be3179b39b728494639788c9f4f36

[12] Specifiy name and description rules for td, th and tr elements - issu… by asurkov · Pull Request #132 · w3c/html-aam () https://github.com/w3c/html-aam/pull/132

[13] HTML-AAM: td and tr Name and Description Computation not specified · Issue #44 · w3c/html-aam () https://github.com/w3c/html-aam/issues/44

[14] Change <td hidden> to render as display: none (zcorpan著, ) https://github.com/whatwg/html/commit/b3c7c89e198bcebefab7c57777e9564ecd83f7e4

[15] Specifiy name and description rules for td, th and tr elements - issue … (asurkov著, ) https://github.com/w3c/html-aam/commit/7ef3eb19602be3179b39b728494639788c9f4f36

[16] Specifiy name and description rules for td, th and tr elements - issu… by asurkov · Pull Request #132 · w3c/html-aam () https://github.com/w3c/html-aam/pull/132

[17] HTML-AAM: td and tr Name and Description Computation not specified · Issue #44 · w3c/html-aam () https://github.com/w3c/html-aam/issues/44

[18] HTML-AAM: td and tr Name and Description Computation not specified · Issue #352 · w3c/aria () https://github.com/w3c/aria/issues/352