TR

tr 要素 (HTML)

[1] HTMLtr 要素は、 (row) 包含子としてはたらきます。

[5] 仕様書:

[2]

局所名
tr
名前空間名
http://www.w3.org/1999/xhtml
開始タグ
必須
終了タグ
省略可能 (HTML 4), 必須 (XHTML 1)
内容模型
(th | td)+
出現できる文脈
thead, tfoot, tbody の直下に一つ以上 (HTML 4, XHTML 1 複雑表)。 または tbody のない table の直下に一つ以上 (XHTML 1 簡易表)。
属性
属性名属性値の型既定値説明状態出典
align揃え[HTML4] %cellhalign
background%URI(透明)背景画非標準
bordercolor%Color境界色非標準
bordercolordark%Color境界色非標準
bordercolorlight%Color境界色非標準
char揃える文字[HTML4] %cellhalign
charoff揃える文字[HTML4] %cellhalign
class[HTML4] %coreattr
cntrlrowブール型属性非標準
dir書字方向[HTML4] %i18n
frame[HTML4]
id一意識別子[HTML4] %coreattr
lang自然言語[HTML4] %i18n
xml:lang自然言語[XHTML1]
onclick[HTML4] %events
ondblclick[HTML4] %events
onkeydown[HTML4] %events
onkeypress[HTML4] %events
onkeyup[HTML4] %events
onmousedown[HTML4] %events
onmousemove[HTML4] %events
onmouseout[HTML4] %events
onmouseover[HTML4] %events
onmouseup[HTML4] %events
styleスタイル情報[HTML4] %coreattr
title注釈的題[HTML4] %coreattr
valign垂直配置[HTML4] %cellvalign
xmlnshttp://www.w3.org/1999/xhtml 固定名前空間名W3C 勧告XHTML m12n

[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> ...A header row...
<TR> ...First row of data...
<TR> ...Second row of data...
...the rest of the table...
</TABLE>

(HTML 4 仕様書より)

[6]

<tr id="foo@example.com" onclickFn="OnClick_OnlineContact(this);" displayname="foo" status="BSY" pending="False" blocked="False" rTitle="foo@example.com" capFlag="1073856561"></tr>
出典: MSN Web Messenger, 2006年2月現在

(名無しさん [sage])

メモ

[4] trheight 属性で高さの指定は、 できそうでできません。

メモ

[7] Let HTMLTableElement create*() and insertRow() return specific types · whatwg/html@93cb3d6 ( 版) https://github.com/whatwg/html/commit/93cb3d61526cf956a739c57398760dc8a3a633bd

[8] Editorial: narrow the return type of insertRow() (saschanaz著, ) https://github.com/whatwg/html/commit/5fa3e5cf69e141566b7e3559c2ee2192a78b3b02

[9] Narrow the return type of insertRow by saschanaz · Pull Request #3637 · whatwg/html () https://github.com/whatwg/html/pull/3637

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

[11] 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

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

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

[14] 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

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

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