Living Standard â Last Updated 1 September 2026
tableèŠçŽ Support in all current engines.
Support in all current engines.
captionèŠçŽ ã0å以äžã®colgroupèŠçŽ ãä»»æã§theadèŠçŽ ã0å以äžã®tbodyèŠçŽ ãŸãã¯1å以äžã®trèŠçŽ ã®ãããããä»»æã§tfootèŠçŽ ãä»»æã§1ã€ä»¥äžã®ã¹ã¯ãªãããµããŒãèŠçŽ ãšæ··åãããã[Exposed =Window ]
interface HTMLTableElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions ] attribute HTMLTableCaptionElement ? caption ;
HTMLTableCaptionElement createCaption ();
[CEReactions ] undefined deleteCaption ();
[CEReactions ] attribute HTMLTableSectionElement ? tHead ;
HTMLTableSectionElement createTHead ();
[CEReactions ] undefined deleteTHead ();
[CEReactions ] attribute HTMLTableSectionElement ? tFoot ;
HTMLTableSectionElement createTFoot ();
[CEReactions ] undefined deleteTFoot ();
[SameObject ] readonly attribute HTMLCollection tBodies ;
HTMLTableSectionElement createTBody ();
[SameObject ] readonly attribute HTMLCollection rows ;
HTMLTableRowElement insertRow (optional long index = -1);
[CEReactions ] undefined deleteRow (long index );
// also has obsolete members
};
tableèŠçŽ ã¯ããŒãã«åœ¢åŒã§ãè€æ°ã®æ¬¡å
ãæã€ããŒã¿ã衚ãã
tableèŠçŽ ã¯ãããŒãã«ã¢ãã«ã«åå ãããããŒãã«ã¯ãè¡ãåãããã³ãã®åå«ã«ãã£ãŠäžããããã»ã«ãæã€ãè¡ãšåã¯ã°ãªããã圢æãããããŒãã«ã®ã»ã«ã¯å®å
šã«éè€ããããšãªããã°ãªãããã«ããŒããªããã°ãªããªãã
ãã®é©åæ§èŠä»¶ãæºãããããã©ãããæ±ºå®ããããã®æ£ç¢ºãªèŠåã¯ãããŒãã«ã¢ãã«ã®èª¬æã«èšèŒãããã
èè ã¯ãè€éãªããŒãã«ãã©ã®ããã«è§£éããããèšè¿°ããæ å ±ãæäŸããããæšå¥šãããããã®ãããªæ å ±ãæäŸããæ¹æ³ã«ã€ããŠã®æåŒãã¯åŸè¿°ã®ãšããã§ããã
ããŒãã«ã¯ãã¬ã€ã¢ãŠãã®è£å©ãšããŠäœ¿çšãããŠã¯ãªããªããæŽå²çã«ãäžéšã®ãŠã§ãèè ã¯ãèªèº«ã®ããŒãžã®ã¬ã€ã¢ãŠããå¶åŸ¡ããæ¹æ³ãšããŠHTMLã®ããŒãã«ã誀çšããŠããããã®ãããªææžãã衚圢åŒã®ããŒã¿ã®æœåºã詊ã¿ãããŒã«ã¯æ¥µããŠæ··ä¹±ããçµæãåŸãããšã«ãªãããããã®äœ¿çšæ³ã¯äžé©åã§ãããå ·äœçã«ãã¹ã¯ãªãŒã³ãªãŒããŒã®ãããªã¢ã¯ã»ã·ããªãã£ããŒã«ã®ãŠãŒã¶ãŒã¯ãããŒãã«ãã¬ã€ã¢ãŠãã«äœ¿çšãããããŒãã«ããã€ããŒãžãããã²ãŒãããã®ã«éåžžã«å°é£ã§ããããšãèŠã€ããå¯èœæ§ãé«ãã
ã¬ã€ã¢ãŠãã«å¯ŸããŠHTMLããŒãã«ã䜿çšãã代ããã«ãCSSã°ãªããã¬ã€ã¢ãŠããCSSãã¬ãã·ãã«ããã¯ã¹ã¬ã€ã¢ãŠãïŒ"flexbox"ïŒãCSSãã«ãã«ã©ã ã¬ã€ã¢ãŠããCSSããžã·ã§ãã³ã°ãCSSããŒãã«ã¢ãã«ãªã©ãããŸããŸãªæ¹æ³ãããã[CSS]
ããŒãã«ã¯ãçè§£ããã€ããã²ãŒãããããã«è€éã«ãªãããšãããããŠãŒã¶ãŒãšãŒãžã§ã³ããïŒäžé©åãªïŒã¬ã€ã¢ãŠãããŒãã«ãšããŠããŒãã«ãåé¡ããŠããªãéãããŠãŒã¶ãŒã®æå©ããããããã«ããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ãããŒãã«ã®ã»ã«ãäºãã«æç¢ºã«ç€ºãã¹ãã§ããã
èè ããã³å®è£ è ã¯ããŠãŒã¶ãŒã«å¯ŸããŠããŒãã«ãããç°¡åã«ç§»åããããã«ãäžèšã®ããŒãã«ãã¶ã€ã³ãã¯ããã¯ã®äœ¿çšãæ€èšããããšãæšå¥šããã
ãŠãŒã¶ãŒãšãŒãžã§ã³ããç¹ã«ä»»æã®ã³ã³ãã³ãäžã§ããŒãã«ã®åæãè¡ããã®ã¯ãã©ã®ããŒãã«ãå®éã«ããŒã¿ãå«ã¿ãã©ã®ããŒãã«ãåã«ã¬ã€ã¢ãŠãã®ããã«äœ¿çšãããŠããããæ±ºå®ããããã®ãã¥ãŒãªã¹ãã£ãã¯ãèŠã€ããããšãå§ããããã®ä»æ§ã¯ãæ£ç¢ºãªãã¥ãŒãªã¹ãã£ãã¯ãå®çŸ©ããªããã以äžãå¯èœãªææšãšããŠææ¡ãããïŒ
| Feature | Indication |
|---|---|
å€presentationããã€role屿§ã®äœ¿çš | ããããã¬ã€ã¢ãŠãããŒãã« |
äžé©åå€0ããã€äžé©åborder屿§ã®äœ¿çš | ããããã¬ã€ã¢ãŠãããŒãã« |
å€0ããã€äžé©åcellspacingããã³cellpaddingã®äœ¿çš | ããããã¬ã€ã¢ãŠãããŒãã« |
captionãtheadãŸãã¯thèŠçŽ ã®äœ¿çš | ããããéã¬ã€ã¢ãŠãããŒãã« |
headersããã³scope屿§ã®äœ¿çš | ããããéã¬ã€ã¢ãŠãããŒãã« |
0以å€ã®å€ããã€äžé©åborder屿§ã®äœ¿çš | ããããéã¬ã€ã¢ãŠãããŒãã« |
| CSSã䜿çšããŠèšå®ãããæç€ºçãªå¯èŠããŒã㌠| ããããéã¬ã€ã¢ãŠãããŒãã« |
summary屿§ã®äœ¿çš | ããææšã§ã¯ãªãïŒæŽå²çã«ã¬ã€ã¢ãŠããšéã¬ã€ã¢ãŠãããŒãã«ã®äž¡æ¹ã¯ããã®å±æ§ãäžããããŠããïŒ |
äžèšã®ææ¡ãæ£ãããªãããšãéåžžã«ãããããImplementers are urged to provide feedback elaborating on their experiences with trying to create a layout table detection heuristic.
tableèŠçŽ ãïŒäžé©åïŒsummary屿§ãæã¡ããã€ãŠãŒã¶ãŒãšãŒãžã§ã³ããã¬ã€ã¢ãŠãããŒãã«ãšããŠããŒãã«ã«åé¡ãããŠããªãå ŽåããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ããŠãŒã¶ãŒã«ãã®å±æ§ã®ã³ã³ãã³ããå ±åããŠãããã
table.caption [ = value ]Support in all current engines.
ããŒãã«ã®captionèŠçŽ ãè¿ãã
captionèŠçŽ ã眮ãæããããã«ãèšå®ãå¯èœã§ããã
caption = table.createCaption()HTMLTableElement/createCaption
Support in all current engines.
衚ãcaptionèŠçŽ ãæã€ããšãä¿èšŒãããããè¿ãã
table.deleteCaption()HTMLTableElement/deleteCaption
Support in all current engines.
衚ãcaptionèŠçŽ ãæããªãããšãä¿èšŒããã
table.tHead [ = value ]Support in all current engines.
ããŒãã«ã®theadèŠçŽ ãè¿ãã
theadèŠçŽ ã眮ãæããããã«ãèšå®ãå¯èœã§ãããæ°ããå€ãtheadèŠçŽ ã§ãªãå Žåã"HierarchyRequestError" DOMExceptionãæããã
thead = table.createTHead()Support in all current engines.
衚ãtheadèŠçŽ ãæã€ããšãä¿èšŒãããããè¿ãã
table.deleteTHead()Support in all current engines.
衚ãtheadèŠçŽ ãæããªãããšãä¿èšŒããã
table.tFoot [ = value ]Support in all current engines.
ããŒãã«ã®tfootèŠçŽ ãè¿ãã
tfootèŠçŽ ã眮ãæããããã«ãèšå®ãå¯èœã§ãããæ°ããå€ãtfootèŠçŽ ã§ãªãå Žåã"HierarchyRequestError" DOMExceptionãæããã
tfoot = table.createTFoot()Support in all current engines.
衚ãtfootèŠçŽ ãæã€ããšãä¿èšŒãããããè¿ãã
table.deleteTFoot()Support in all current engines.
衚ãtfootèŠçŽ ãæããªãããšãä¿èšŒããã
table.tBodiesSupport in all current engines.
ããŒãã«ã®tbodyèŠçŽ ã®HTMLCollectionãè¿ãã
tbody = table.createTBody()Support in all current engines.
tbodyèŠçŽ ãäœæããŠããŒãã«ã«æ¿å
¥ãããããè¿ãã
table.rowsSupport in all current engines.
ããŒãã«ã®trèŠçŽ ã®HTMLCollectionãè¿ãã
tr = table.insertRow([ index ])Support in all current engines.
å¿
èŠã§ããã°ãtbodyèŠçŽ ãšãšãã«ãtrèŠçŽ ãäœæããåŒæ°ã§æå®ãããäœçœ®ã«ããããŒãã«ãžããããæ¿å
¥ããŠãtrãè¿ãã
äœçœ®ã¯ãããŒãã«ã®è¡ãåºæºã«ãããåŒæ°ãçç¥ãããŠããå Žåãããã©ã«ãã§ã€ã³ããã¯ã¹-1ã¯ãããŒãã«ã®æ«å°Ÿã«æ¿å ¥ããããšãšåãã§ããã
æå®ãããäœçœ®ã-1æªæºãŸãã¯è¡æ°ãã倧ããå Žåã"IndexSizeError" DOMExceptionãæããã
table.deleteRow(index)Support in all current engines.
ããŒãã«ã§æå®ãããäœçœ®ãšãšãã«trèŠçŽ ãåé€ããã
äœçœ®ã¯ãããŒãã«ã®è¡ãåºæºã«ãããã€ã³ããã¯ã¹-1ã¯ãããŒãã«ã®æåŸã®è¡ãåé€ããã®ãšåãã§ããã
æå®ãããäœçœ®ã-1æªæºãŸãã¯æçµè¡ã®ã€ã³ããã¯ã¹ããã倧ããããŸãã¯è¡ãååšããªãå Žåã"IndexSizeError" DOMExceptionãæããã
To create a table element given a table element tableElement and a string localName, return the result of creating an element given tableElement's node document, localName, and the HTML namespace.
The caption getter steps are to return the first caption element child of this, if any; otherwise null.
The caption setter steps are:
The createCaption() method steps are:
If this has a caption element child, then return the first such element.
Let caption be the result of creating a table element given this and "caption".
Insert caption as the first node of this.
Return caption.
The tHead setter steps are:
If the given value is neither null nor a thead element, then throw a "HierarchyRequestError" DOMException.
If the given value is not null, then insert it immediately before the first element child of this that is neither a caption element nor a colgroup element, if any; otherwise insert it at the end of this.
The createTHead() method steps are:
If this has a thead element child, then return the first such element.
Let thead be the result of creating a table element given this and "thead".
Insert thead immediately before the first element child of this that is neither a caption element nor a colgroup element, if any; otherwise insert thead at the end of this.
Return thead.
The tFoot setter steps are:
If the given value is neither null nor a tfoot element, then throw a "HierarchyRequestError" DOMException.
If the given value is not null, then insert it at the end of this.
The createTFoot() method steps are:
If this has a tfoot element child, then return the first such element.
Let tfoot be the result of creating a table element given this and "tfoot".
Insert tfoot at the end of this.
Return tfoot.
The tBodies getter steps are to return an HTMLCollection rooted at this, whose filter matches only tbody elements that are children of this.
The createTBody() method steps are:
Let tbody be the result of creating a table element given this and "tbody".
Insert tbody immediately after the last tbody element child of this, if any; otherwise insert tbody at the end of this.
Return tbody.
The rows getter steps are to return an HTMLCollection rooted at this, whose filter matches only tr elements that are either children of this, or children of thead, tbody, or tfoot elements that are themselves children of this. The elements in the collection must be ordered such that those elements whose parent is a thead are included first, in tree order, followed by those elements whose parent is either this or a tbody element, again in tree order, followed finally by those elements whose parent is a tfoot element, still in tree order.
The insertRow(index) method steps are:
If index is less than â1 or greater than the number of elements in the rows collection, then throw an "IndexSizeError" DOMException.
Let tr be the result of creating a table element given this and "tr".
If the rows collection has zero elements in it, and this has no tbody elements in it:
Let tbody be the result of creating a table element given this and "tbody".
Append tr to tbody.
Append tbody to this.
Otherwise, if the rows collection has zero elements in it, then append tr to the last tbody element in this.
Otherwise, if index is â1 or equal to the number of items in the rows collection, then append tr to the parent of the last tr element in the rows collection.
Otherwise, insert tr immediately before the indexth tr element in the rows collection, in the same parent.
Return tr.
The deleteRow(index) method steps are:
If index is less than â1 or greater than or equal to the number of elements in the rows collection, then throw an "IndexSizeError" DOMException.
If index is â1, then remove the last element in the rows collection from its parent, or do nothing if the rows collection is empty.
Otherwise, remove the indexth element in the rows collection from its parent.
ããã¯ãæ°ç¬ããºã«ãããŒã¯ã¢ããããããã«äœ¿çšãããŠããããŒãã«ã®äŸã§ããããã®ãããªããŒãã«ã§å¿ èŠã®ãªããããããŒã®æ¬ åŠã芳å¯ããã
< style >
# sudoku { border-collapse : collapse ; border : solid thick ; }
# sudoku colgroup , table # sudoku tbody { border : solid medium ; }
# sudoku td { border : solid thin ; height : 1.4 em ; width : 1.4 em ; text-align : center ; padding : 0 ; }
</ style >
< h1 > Today's Sudoku</ h1 >
< table id = "sudoku" >
< colgroup >< col >< col >< col >
< colgroup >< col >< col >< col >
< colgroup >< col >< col >< col >
< tbody >
< tr > < td > 1 < td > < td > 3 < td > 6 < td > < td > 4 < td > 7 < td > < td > 9
< tr > < td > < td > 2 < td > < td > < td > 9 < td > < td > < td > 1 < td >
< tr > < td > 7 < td > < td > < td > < td > < td > < td > < td > < td > 6
< tbody >
< tr > < td > 2 < td > < td > 4 < td > < td > 3 < td > < td > 9 < td > < td > 8
< tr > < td > < td > < td > < td > < td > < td > < td > < td > < td >
< tr > < td > 5 < td > < td > < td > 9 < td > < td > 7 < td > < td > < td > 1
< tbody >
< tr > < td > 6 < td > < td > < td > < td > 5 < td > < td > < td > < td > 2
< tr > < td > < td > < td > < td > < td > 7 < td > < td > < td > < td >
< tr > < td > 9 < td > < td > < td > 8 < td > < td > 2 < td > < td > < td > 5
</ table >
1è¡ç®ã®ããããŒãš1åç®ã®ããããŒããã€ã»ã«ã®1ã€ä»¥äžã®ã°ãªãããããªãããŒãã«ã«å¯ŸããŠãããã³äžè¬ã«èªè ãã³ã³ãã³ããçè§£ããé£ããããããããããªãå Žæã§ä»»æã®ããŒãã«ã«å¯ŸããŠãèè ã¯ããŒãã«ãå°å ¥ããèª¬ææ å ±ãå«ããã¹ãã§ããããã®æ å ±ã¯ãã¹ãŠã®ãŠãŒã¶ãŒã«å¯ŸããŠæçšã§ããããããšãã°ã¹ã¯ãªãŒã³ãªãŒããŒã®ãŠãŒã¶ãŒãªã©ãããŒãã«ãèŠãããšãã§ããªããŠãŒã¶ãŒã«å¯ŸããŠç¹ã«æçšã§ããã
ãã®ãããªèª¬ææ å ±ã¯ãããŒãã«ã®ç®çã玹ä»ãããã®åºæ¬çãªã»ã«æ§é ãèŠçŽããåŸåããã¿ãŒã³ã匷調ããããã³äžè¬ã«ã©ã®ããã«ããŒãã«ã䜿çšãããããŠãŒã¶ãŒã«æããã¹ãã§ããã
ããšãã°ã次ã®è¡šã«ãããŠïŒ
| Negative | Characteristic | Positive |
|---|---|---|
| Sad | Mood | Happy |
| Failing | Grade | Passing |
"å·ŠåŽã®åã®åŠå®çãªåŽé¢ããã³å³åŽã®åã«è¯å®çãªåŽé¢ãšãšãã«ãç¹æ§ã¯2åç®ã«ç€ºãããŠãã"ã®ãããªäœããã衚ãã¬ã€ã¢ãŠãããæ¹æ³ã瀺ã説æãæ©æµãåãããããããªãã
ãã®æ å ±ãå«ããããã®ããŸããŸãªæ¹æ³ãããïŒ
< p > In the following table, characteristics are given in the second
column, with the negative side in the left column and the positive
side in the right column.</ p >
< table >
< caption > Characteristics with positive and negative sides</ caption >
< thead >
< tr >
< th id = "n" > Negative
< th > Characteristic
< th > Positive
< tbody >
< tr >
< td headers = "n r1" > Sad
< th id = "r1" > Mood
< td > Happy
< tr >
< td headers = "n r2" > Failing
< th id = "r2" > Grade
< td > Passing
</ table > captionã§< table >
< caption >
< strong > Characteristics with positive and negative sides.</ strong >
< p > Characteristics are given in the second column, with the
negative side in the left column and the positive side in the right
column.</ p >
</ caption >
< thead >
< tr >
< th id = "n" > Negative
< th > Characteristic
< th > Positive
< tbody >
< tr >
< td headers = "n r1" > Sad
< th id = "r1" > Mood
< td > Happy
< tr >
< td headers = "n r2" > Failing
< th id = "r2" > Grade
< td > Passing
</ table > captionãdetailsèŠçŽ ã§< table >
< caption >
< strong > Characteristics with positive and negative sides.</ strong >
< details >
< summary > Help</ summary >
< p > Characteristics are given in the second column, with the
negative side in the left column and the positive side in the right
column.</ p >
</ details >
</ caption >
< thead >
< tr >
< th id = "n" > Negative
< th > Characteristic
< th > Positive
< tbody >
< tr >
< td headers = "n r1" > Sad
< th id = "r1" > Mood
< td > Happy
< tr >
< td headers = "n r2" > Failing
< th id = "r2" > Grade
< td > Passing
</ table > figureã§< figure >
< figcaption > Characteristics with positive and negative sides</ figcaption >
< p > Characteristics are given in the second column, with the
negative side in the left column and the positive side in the right
column.</ p >
< table >
< thead >
< tr >
< th id = "n" > Negative
< th > Characteristic
< th > Positive
< tbody >
< tr >
< td headers = "n r1" > Sad
< th id = "r1" > Mood
< td > Happy
< tr >
< td headers = "n r2" > Failing
< th id = "r2" > Grade
< td > Passing
</ table >
</ figure > figureã®figcaptionã§< figure >
< figcaption >
< strong > Characteristics with positive and negative sides</ strong >
< p > Characteristics are given in the second column, with the
negative side in the left column and the positive side in the right
column.</ p >
</ figcaption >
< table >
< thead >
< tr >
< th id = "n" > Negative
< th > Characteristic
< th > Positive
< tbody >
< tr >
< td headers = "n r1" > Sad
< th id = "r1" > Mood
< td > Happy
< tr >
< td headers = "n r2" > Failing
< th id = "r2" > Grade
< td > Passing
</ table >
</ figure > å¿ èŠã«å¿ããŠèè ã¯ãŸããä»ã®æè¡ãŸãã¯äžèšã®æè¡ã®çµã¿åããã䜿çšããŠãããã
ãã¡ãããæè¯ã®éžæè¢ã¯ãããŒãã«ãã¬ã€ã¢ãŠããããçç±ã説æããèšè¿°ãæžãããšãããããããäžåã®èª¬æãå¿ èŠãšããªãããã«ããŒãã«ã調æŽããããšã§ããã
äžèšã®äŸã§äœ¿çšãããããŒãã«ã®å ŽåãããããŒãäžãšå·ŠåŽã«æ¥ãããã«ãããŒãã«ã®åçŽãªåé
眮ã¯ãheaders屿§ã®äœ¿çšã®èŠæ±ãåé€ããã ãã§ãªãã説æã®èŠæ±ãåé€ããã
< table >
< caption > Characteristics with positive and negative sides</ caption >
< thead >
< tr >
< th > Characteristic
< th > Negative
< th > Positive
< tbody >
< tr >
< th > Mood
< td > Sad
< td > Happy
< tr >
< th > Grade
< td > Failing
< td > Passing
</ table >
è¯ãããŒãã«ãã¶ã€ã³ã¯ãããŒãã«ãããèªã¿ãããã䜿ããããããããã®éµãšãªãã
èŠèŠã¡ãã£ã¢ã«ãããŠãåãšè¡ã®å¢çãæäŸããŠè¡ã®èæ¯ã亀äºã«ããããšã¯ãè€éãªããŒãã«ãããèªã¿ãããããããã«éåžžã«å¹æçã§ããã
倧éã®ã³ã³ãã³ããæã€ããŒãã«ã«å¯ŸããŠãç¹ã«ããŠãŒã¶ãŒãšãŒãžã§ã³ããããŒããŒãã¬ã³ããªã³ã°ããªãç¶æ³ã«ãããŠçå¹ ãã©ã³ãã䜿çšããããšã¯ããŠãŒã¶ãŒã«ãã¿ãŒã³ã«æ°ã¥ãã®ãå©ããããšãã§ãããïŒæ®å¿µãªãããæŽå²çãªçç±ã«ãããããŒãã«ã®ããŒããŒãã¬ã³ããªã³ã°ããªãããšã¯ãå ±éã®ããã©ã«ãã§ãããïŒ
é³å£°ã¡ãã£ã¢ã«ãããŠãããŒãã«ã®ã»ã«ã¯ãã»ã«ã®å 容ãèªãåã«å¯Ÿå¿ããããããŒãå ±åããããšã«ãã£ãŠãããã³ãœãŒã¹ã®é åºã§ããŒãã«ã®å å®¹å šäœãã·ãªã¢ã©ã€ãºããã®ã§ã¯ãªãããããã°ãªããæ¹åŒã§ããŒãã«ãããã²ãŒãã§ããããã«ããããšã§åºå¥ã§ããã
èè ã¯ããããã®å¹æãéæããããã«CSSã䜿çšããããæšå¥šãããã
ãŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ãããŒãžãCSSã䜿çšãããã€ããŒãã«ãã¬ã€ã¢ãŠãããŒãã«ã«åé¡ãããªããšãã¯ãã€ã§ãããã®ãã¯ããã¯ã䜿çšããŠããŒãã«ãã¬ã³ããªã³ã°ããããšãå§ããããã
captionèŠçŽ Support in all current engines.
Support in all current engines.
tableèŠçŽ ã®æåã®åãšããŠãtableèŠçŽ ã®åå«ãé€ããcaptionèŠçŽ ã®çŽåŸãASCIIç©ºçœæåãŸãã¯ã³ã¡ã³ãã§ãªãå ŽåãcaptionèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ããã[Exposed =Window ]
interface HTMLTableCaptionElement : HTMLElement {
[HTMLConstructor ] constructor ();
// also has obsolete members
};
èŠçŽ ã芪ãæã¡ããã€ããããtableèŠçŽ ã§ããå ŽåãcaptionèŠçŽ ã¯ããã®èŠªã§ããtableã®ã¿ã€ãã«ã衚ãã
captionèŠçŽ ã¯ãããŒãã«ã¢ãã«ã«åå ããã
figureèŠçŽ ã®äžã§ãfigcaption以å€ã®ã³ã³ãã³ããtableèŠçŽ ãã®ã¿ã§ããå ŽåãfigcaptionãéžæããŠcaptionèŠçŽ ãçç¥ãã¹ãã§ããã
ãã£ãã·ã§ã³ã¯ãããŒãã«ã«å¯Ÿããã³ã³ããã¹ããå°å ¥ã§ããå€§å¹ ã«çè§£ããããããã
ããšãã°ã次ã®ããŒãã«ãèããŠã¿ãïŒ
| 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
çè«çã«èããã°ããã®ããŒãã«ã¯æç¢ºã§ãªãããããããã£ãã·ã§ã³ã§ïŒæ¬æã§ã®åç §ã®ããã«ïŒããŒãã«ã®çªå·ãäžãããã®äœ¿ç𿹿³ã説æããããšã§ãããã«çè§£ã§ããããã«ãªãïŒ
< caption >
< p > Table 1.
< p > This table shows the total score obtained from rolling two
six-sided dice. The first row represents the value of the first die,
the first column the value of the second die. The total is given in
the cell that corresponds to the values of the two dice.
</ caption >
以äžã¯ãããå€ãã®ã³ã³ããã¹ãããŠãŒã¶ãŒã«æäŸããïŒ
| 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
colgroupèŠçŽ Support in all current engines.
Support in all current engines.
tableèŠçŽ ã®åãšããŠãä»»æã®captionèŠçŽ ã®åŸãã€ä»»æã®theadãtbodyãtfootãããã³trèŠçŽ ã®åãspan屿§ãååšããå ŽåïŒNothingãspan屿§ãååšããªãå ŽåïŒ0å以äžã®colèŠçŽ ããã³templateèŠçŽ ãcolgroupèŠçŽ å
ã®æåã®æãcolèŠçŽ ã§ããå Žåããã€çµäºã¿ã°ãçç¥ãããŠããå¥ã®colgroupèŠçŽ ã®çŽåã«ååšããªãå ŽåãcolgroupèŠçŽ ã®éå§ã¿ã°ã¯çç¥ããããšãã§ãããïŒèŠçŽ ã空ã§ããå Žåãçç¥ã§ããªããïŒcolgroupèŠçŽ ã®çŽåŸãASCIIç©ºçœæåãŸãã¯ã³ã¡ã³ãã§ãªãå ŽåãcolgroupèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ãããspan â èŠçŽ ããŸãããåã®æ°spanã䌎ã£ãŠããã©ã«ãã[Exposed =Window ]
interface HTMLTableColElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect , ReflectDefault=1, ReflectRange=(1, 1000)] attribute unsigned long span ;
// also has obsolete members
};
ãã®èŠçŽ ãtableèŠçŽ ã®èŠªãæã€å ŽåãcolgroupèŠçŽ ã¯ã芪ã§ããtableã§1ã€ä»¥äžã®åã®ã°ã«ãŒãã衚ãã
colgroupèŠçŽ ãäžåcolèŠçŽ ãå«ãŸãªãå ŽåãèŠçŽ ã¯ãå€ã0ãã倧ãããã€1000以äžã®åŠ¥åœãªè² ã§ãªãæŽæ°ã§ãªããã°ãªããªããæå®ãããspanã³ã³ãã³ã屿§ãæã£ãŠãããã
colgroupèŠçŽ ããã³èŠçŽ ã®spanã¯ãããŒãã«ã¢ãã«ã«åå ããã
colèŠçŽ Support in all current engines.
span屿§ãæããªãcolgroupèŠçŽ ã®åãšããŠãspan â èŠçŽ ããŸãããåã®æ°spanã䌎ã£ãŠããã©ã«ããHTMLTableColElementãcolgroupèŠçŽ ã®å Žåãšåæ§ãcolèŠçŽ ã芪ãæã¡ããããtableèŠçŽ ã芪ã§ããcolgroupèŠçŽ èªäœã§ããå Žåã¯ãcolèŠçŽ ã¯ããã®colgroupã«ãã£ãŠè¡šãããåã°ã«ãŒãå
ã®1ã€ä»¥äžã®åã衚ãã
èŠçŽ ã¯ãå€ã0ãã倧ãããã€1000以äžã®åŠ¥åœãªè² ã§ãªãæŽæ°ã§ãªããã°ãªããªããæå®ãããspanã³ã³ãã³ã屿§ãæã£ãŠãããã
colèŠçŽ ããã³èŠçŽ ã®spanã¯ãããŒãã«ã¢ãã«ã«åå ããã
tbodyèŠçŽ Support in all current engines.
Support in all current engines.
tableèŠçŽ ã®åãšããŠãä»»æã®captionãcolgroupãããã³theadèŠçŽ ã®åŸããã ãtableèŠçŽ ã®åã§ããtrãäžåååšããªãå Žåã®ã¿ã«éããtrèŠçŽ ããã³ã¹ã¯ãªãããµããŒãèŠçŽ ãtbodyèŠçŽ å
ã®æåã®æãtrèŠçŽ ã§ããå Žåããã€ãã®èŠçŽ ãçµäºã¿ã°ãçç¥ãããŠããtbodyãtheadããŸãã¯tfootèŠçŽ ã®çŽåã«ååšããªãå ŽåãtbodyèŠçŽ ã®éå§ã¿ã°ã¯çç¥ããããšãã§ãããïŒèŠçŽ ã空ã§ããå Žåãçç¥ã§ããªããïŒtbodyèŠçŽ ãå¥ã®tbodyãŸãã¯tfootèŠçŽ ã®çŽåŸã«ååšããå ŽåããŸãã¯èŠªèŠçŽ ã«è¿œå ã®ã³ã³ãã³ããååšããªãå ŽåãtbodyèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ããã[Exposed =Window ]
interface HTMLTableSectionElement : HTMLElement {
[HTMLConstructor ] constructor ();
[SameObject ] readonly attribute HTMLCollection rows ;
HTMLTableRowElement insertRow (optional long index = -1);
[CEReactions ] undefined deleteRow (long index );
// also has obsolete members
};
HTMLTableSectionElementã€ã³ã¿ãŒãã§ã€ã¹ã¯ãtheadèŠçŽ ãštfootèŠçŽ ã«ã䜿çšãããã
tbodyèŠçŽ ãtableã§ãã芪ãæã€å ŽåãtbodyèŠçŽ ã¯ã芪tableèŠçŽ ã«å¯ŸãããŒã¿ã®æ¬äœãæ§æããè¡ã®ãããã¯ã衚ãã
tbodyèŠçŽ ã¯ãããŒãã«ã¢ãã«ã«åå ããã
tbody.rowsããŒãã«ã»ã¯ã·ã§ã³ã®trèŠçŽ ã®HTMLCollectionãè¿ãã
tr = tbody.insertRow([ index ])trèŠçŽ ãäœæããåŒæ°ã§æå®ãããå Žæã§ããŒãã«ã»ã¯ã·ã§ã³ã«ãããæ¿å
¥ããtrãè¿ãã
äœçœ®ã¯ãããŒãã«ã®è¡ãåºæºã«ãããåŒæ°ãçç¥ãããŠããå Žåãããã©ã«ãã§ã€ã³ããã¯ã¹-1ã¯ãããŒãã«ã»ã¯ã·ã§ã³ã®æ«å°Ÿã«æ¿å ¥ããããšãšåãã§ããã
æå®ãããäœçœ®ã-1æªæºãŸãã¯è¡æ°ãã倧ããå Žåã"IndexSizeError" DOMExceptionãæããã
tbody.deleteRow(index)ããŒãã«ã»ã¯ã·ã§ã³ã§æå®ãããäœçœ®ãšãšãã«trèŠçŽ ãåé€ããã
äœçœ®ã¯ãããŒãã«ã®è¡ãåºæºã«ãããã€ã³ããã¯ã¹-1ã¯ãããŒãã«ã®æåŸã®è¡ãåé€ããã®ãšåãã§ããã
æå®ãããäœçœ®ã-1æªæºãŸãã¯æçµè¡ã®ã€ã³ããã¯ã¹ããã倧ããããŸãã¯è¡ãååšããªãå Žåã"IndexSizeError" DOMExceptionãæããã
The rows attribute must return an HTMLCollection rooted at this element, whose filter matches only tr elements that are children of this element.
The insertRow(index) method must act as follows:
If index is less than â1 or greater than the number of elements in the rows collection, throw an "IndexSizeError" DOMException.
Let table row be the result of creating an element given this element's node document, "tr", and the HTML namespace.
If index is â1 or equal to the number of items in the rows collection, then append table row to this element.
Otherwise, insert table row as a child of this element, immediately before the indexth tr element in the rows collection.
Return table row.
The deleteRow(index) method must, when invoked, act as follows:
If index is less than â1 or greater than or equal to the number of elements in the rows collection, then throw an "IndexSizeError" DOMException.
If index is â1, then remove the last element in the rows collection from this element, or do nothing if the rows collection is empty.
Otherwise, remove the indexth element in the rows collection from this element.
theadèŠçŽ Support in all current engines.
tableèŠçŽ ã®åãšããŠãä»»æã®captionããã³colgroupèŠçŽ ã®åŸãããã³ä»»æã®tbodyãtfootãããã³trèŠçŽ ã®åããã ãtableã®åã§ããtheadèŠçŽ ä»¥å€ã§ããå Žåã®ã¿ã«éããtrèŠçŽ ããã³ã¹ã¯ãªãããµããŒãèŠçŽ ãtheadèŠçŽ ãtbodyãŸãã¯tfootèŠçŽ ã®çŽåŸã«ååšããå ŽåãtheadèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ãããtbodyèŠçŽ ã«å¯ŸããŠå®çŸ©ããããã®ãšããŠãHTMLTableSectionElementã䜿çšããã theadèŠçŽ ã¯ã theadèŠçŽ ã芪ãæã¡ããã€ãããtableããå Žåã芪tableèŠçŽ ã®åã©ãã«ïŒããããŒïŒããã³è£å©çãªéããããŒã»ã«ã§æ§æãããè¡ã®ãããã¯ã衚ãã
theadèŠçŽ ã¯ãããŒãã«ã¢ãã«ã«åå ããã
ãã®äŸã¯ãtheadèŠçŽ ã䜿ãããæ§åã瀺ããtheadèŠçŽ ã«ãããthãštdã®äž¡æ¹ã®äœ¿ãæ¹ã«æ³šæããã1è¡ç®ã¯ããããŒã§ããã2è¡ç®ã¯è¡šã«èšå
¥ããæ¹æ³ã®èª¬æã§ããã
< table >
< caption > School auction sign-up sheet </ caption >
< thead >
< tr >
< th >< label for = e1 > Name</ label >
< th >< label for = e2 > Product</ label >
< th >< label for = e3 > Picture</ label >
< th >< label for = e4 > Price</ label >
< tr >
< td > Your name here
< td > What are you selling?
< td > Link to a picture
< td > Your reserve price
< tbody >
< tr >
< td > Ms Danus
< td > Doughnuts
< td >< img src = "https://example.com/mydoughnuts.png" title = "Doughnuts from Ms Danus" >
< td > $45
< tr >
< td >< input id = e1 type = text name = who required form = f >
< td >< input id = e2 type = text name = what required form = f >
< td >< input id = e3 type = url name = pic form = f >
< td >< input id = e4 type = number step = 0.01 min = 0 value = 0 required form = f >
</ table >
< form id = f action = "/auction.cgi" >
< input type = button name = add value = "Submit" >
</ form >
tfootèŠçŽ Support in all current engines.
tableèŠçŽ ã®åãšããŠãä»»æã®captionãcolgroupãtheadãtbodyããã³trèŠçŽ ã®åŸããã ãtableã®åã§ããtfootèŠçŽ ä»¥å€ã§ããå Žåã®ã¿ã«éããtrèŠçŽ ããã³ã¹ã¯ãªãããµããŒãèŠçŽ ãtfootèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ãããtbodyèŠçŽ ã«å¯ŸããŠå®çŸ©ããããã®ãšããŠãHTMLTableSectionElementã䜿çšãããtfootèŠçŽ ãtableã§ãã芪ãæã€å ŽåãtfootèŠçŽ ã¯ã芪tableèŠçŽ ã«å¯Ÿãåã®åèšïŒããã¿ãŒïŒãæ§æããè¡ã®ãããã¯ã衚ãã
tfootèŠçŽ ã¯ãããŒãã«ã¢ãã«ã«åå ããã
trèŠçŽ Support in all current engines.
Support in all current engines.
theadèŠçŽ ã®åãšããŠãtbodyèŠçŽ ã®åãšããŠãtfootèŠçŽ ã®åãšããŠãtableèŠçŽ ã®åãšããŠãä»»æã®captionãcolgroupãããã³theadèŠçŽ ã®åŸããã ãtableèŠçŽ ã®åã§ããtbodyãäžåååšããªãå Žåã«éããtdãthãããã³ã¹ã¯ãªãããµããŒãèŠçŽ ãtrèŠçŽ ãå¥ã®trèŠçŽ ã®çŽåŸã«ååšããå ŽåããŸãã¯èŠªèŠçŽ ã«è¿œå ã®ã³ã³ãã³ããååšããªãå ŽåãtrèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ããã[Exposed =Window ]
interface HTMLTableRowElement : HTMLElement {
[HTMLConstructor ] constructor ();
readonly attribute long rowIndex ;
readonly attribute long sectionRowIndex ;
[SameObject ] readonly attribute HTMLCollection cells ;
HTMLTableCellElement insertCell (optional long index = -1);
[CEReactions ] undefined deleteCell (long index );
// also has obsolete members
};
trèŠçŽ ã¯ãããŒãã«ã§ã»ã«ã®è¡ã衚ãã
trèŠçŽ ã¯ãããŒãã«ã¢ãã«ã«åå ããã
tr.rowIndexSupport in all current engines.
ããŒãã«ã®rowsãªã¹ãã§è¡ã®äœçœ®ãè¿ãã
èŠçŽ ãããŒãã«å ã§ãªãå Žåã-1ãè¿ãã
tr.sectionRowIndexããŒãã«ã»ã¯ã·ã§ã³ã®rowsãªã¹ãã§è¡ã®äœçœ®ãè¿ãã
èŠçŽ ãããŒãã«ã»ã¯ã·ã§ã³å ã§ãªãå Žåã-1ãè¿ãã
tr.cellsè¡ã®tdããã³thèŠçŽ ã®HTMLCollectionãè¿ãã
cell = tr.insertCell([ index ])HTMLTableRowElement/insertCell
Support in all current engines.
tdèŠçŽ ãäœæããåŒæ°ã§æå®ãããå Žæã§ããŒãã«è¡ã«ãããæ¿å
¥ããtdãè¿ãã
äœçœ®ã¯ãè¡ã®ã»ã«ãåºæºã«ãããåŒæ°ãçç¥ãããŠããå Žåãããã©ã«ãã§ã€ã³ããã¯ã¹-1ã¯ãè¡ã®æ«å°Ÿã«æ¿å ¥ããããšãšåãã§ããã
æå®ãããäœçœ®ã-1æªæºãŸãã¯ã»ã«æ°ãã倧ããå Žåã"IndexSizeError" DOMExceptionãæããã
tr.deleteCell(index)è¡ã§æå®ãããäœçœ®ãšãšãã«trãŸãã¯thèŠçŽ ãåé€ããã
äœçœ®ã¯ãè¡ã®ã»ã«ãåºæºã«ãããã€ã³ããã¯ã¹-1ã¯ãè¡ã®æåŸã®ã»ã«ãåé€ããã®ãšåãã§ããã
æå®ãããäœçœ®ã-1æªæºãŸãã¯æçµã»ã«ã®ã€ã³ããã¯ã¹ããã倧ããããŸãã¯ã»ã«ãååšããªãå Žåã"IndexSizeError" DOMExceptionãæããã
The rowIndex attribute must, if this element has a parent table element, or a parent tbody, thead, or tfoot element and a grandparent table element, return the index of this tr element in that table element's rows collection. If there is no such table element, then the attribute must return â1.
The sectionRowIndex attribute must, if this element has a parent table, tbody, thead, or tfoot element, return the index of the tr element in the parent element's rows collection (for tables, that's HTMLTableElement's rows collection; for table sections, that's HTMLTableSectionElement's rows collection). If there is no such parent element, then the attribute must return â1.
The cells attribute must return an HTMLCollection rooted at this tr element, whose filter matches only td and th elements that are children of the tr element.
The insertCell(index) method must act as follows:
If index is less than â1 or greater than the number of elements in the cells collection, then throw an "IndexSizeError" DOMException.
Let table cell be the result of creating an element given this tr element's node document, "td", and the HTML namespace.
If index is equal to â1 or equal to the number of items in cells collection, then append table cell to this tr element.
Otherwise, insert table cell as a child of this tr element, immediately before the indexth td or th element in the cells collection.
Return table cell.
The deleteCell(index) method must act as follows:
If index is less than â1 or greater than or equal to the number of elements in the cells collection, then throw an "IndexSizeError" DOMException.
If index is â1, then remove the last element in the cells collection from its parent, or do nothing if the cells collection is empty.
Otherwise, remove the indexth element in the cells collection from its parent.
tdèŠçŽ Support in all current engines.
Support in all current engines.
trèŠçŽ ã®åãšããŠãtdèŠçŽ ãå¥ã®tdãŸãã¯thèŠçŽ ã®çŽåŸã«ååšããå ŽåããŸãã¯èŠªèŠçŽ ã«è¿œå ã®ã³ã³ãã³ããååšããªãå ŽåãtdèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ãããcolspan â ã»ã«ããŸãããåã®æ°rowspan â ã»ã«ããŸãããè¡ã®æ°headers â 該åœã»ã«ã«å¯ŸããããããŒã»ã«colspanãheadersãrowspanã䌎ã£ãŠããã©ã«ãã[Exposed =Window ]
interface HTMLTableCellElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect , ReflectDefault=1, ReflectRange=(1, 1000)] attribute unsigned long colSpan ;
[CEReactions , Reflect , ReflectDefault=1, ReflectRange=(0, 65534)] attribute unsigned long rowSpan ;
[CEReactions , Reflect ] attribute DOMString headers ;
readonly attribute long cellIndex ;
[CEReactions ] attribute DOMString scope ; // only conforming for th elements
[CEReactions , Reflect ] attribute DOMString abbr ; // only conforming for th elements
// also has obsolete members
};
HTMLTableCellElementã€ã³ã¿ãŒãã§ã€ã¹ã¯ãŸããthèŠçŽ ã«ãã£ãŠã䜿çšãããã
tdèŠçŽ ã¯ãããŒãã«ã§ã»ã«ã®ããŒã¿ã衚ãã
tdèŠçŽ ããã³èŠçŽ ã®colspanãrowspanãããã³headers屿§ã¯ãããŒãã«ã¢ãã«ã«åå ããã
ç¹ã«éèŠèŠç°å¢ãŸãã¯2Dã°ãªãããéçŸå®çã§ãããããªããŒãã«ã衚瀺ããå Žåã«ããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ãã»ã«ã®ã³ã³ãã³ããã¬ã³ããªã³ã°ãããšãã«ã»ã«ã®ãŠãŒã¶ãŒã³ã³ããã¹ããäžããŠããããããšãã°ãããŒãã«ã¢ãã«å
ã®äœçœ®ãäžããããŸãã¯ïŒããããŒã»ã«ãå²ãåœãŠãããã®ã¢ã«ãŽãªãºã ã«ãã£ãŠæ±ºå®ããããããªïŒã»ã«ã®ããããŒã»ã«ãäžèŠ§è¡šç€ºãããªã©ãã»ã«ã®ããããŒã»ã«ã衚瀺ãããŠãããŠããå Žåãããããã°ããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ãããããŒã»ã«èªèº«ã®ã³ã³ãã³ãã®ä»£ããã«ããããã®ããããŒã»ã«ã®abbr屿§ã®å€ã䜿çšããŠãããã
ãã®äŸã«ãããŠãç·šéå¯èœãªã»ã«ã®ã°ãªããïŒåºæ¬çã«ã·ã³ãã«ãªã¹ãã¬ããã·ãŒãïŒãããªããŠã§ãã¢ããªã±ãŒã·ã§ã³ã®æçãèŠãŠã¿ããã»ã«ã®1ã€ã¯ããã®äžã®ã»ã«ã®åèšã衚瀺ããããã«æ§æãããŠããã3ã€ã¯ãtdèŠçŽ ã®ä»£ããã«thèŠçŽ ã䜿çšããèŠåºããšããŠããŒã¯ãããŠãããã¹ã¯ãªããã¯ãåèšãç¶æããããã«ãããã®èŠçŽ ã«ã€ãã³ããã³ãã©ãŒãçµã³ã€ããã
< table >
< tr >
< th >< input value = "Name" >
< th >< input value = "Paid ($)" >
< tr >
< td >< input value = "Jeff" >
< td >< input value = "14" >
< tr >
< td >< input value = "Britta" >
< td >< input value = "9" >
< tr >
< td >< input value = "Abed" >
< td >< input value = "25" >
< tr >
< td >< input value = "Shirley" >
< td >< input value = "2" >
< tr >
< td >< input value = "Annie" >
< td >< input value = "5" >
< tr >
< td >< input value = "Troy" >
< td >< input value = "5" >
< tr >
< td >< input value = "Pierce" >
< td >< input value = "1000" >
< tr >
< th >< input value = "Total" >
< td >< output value = "1060" >
</ table >
thèŠçŽ Support in all current engines.
trèŠçŽ ã®åãšããŠãheaderãfooterãã»ã¯ã·ã§ãã³ã°ã³ã³ãã³ãããŸãã¯ããã£ã³ã°ã³ã³ãã³ãã®åå«ãé€ããthèŠçŽ ãå¥ã®tdãŸãã¯thèŠçŽ ã®çŽåŸã«ååšããå ŽåããŸãã¯èŠªèŠçŽ ã«è¿œå ã®ã³ã³ãã³ããååšããªãå ŽåãthèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããããšãã§ãããcolspan â ã»ã«ããŸãããåã®æ°rowspan â ã»ã«ããŸãããè¡ã®æ°headers â 該åœã»ã«ã«å¯ŸããããããŒã»ã«scope â ããããŒã»ã«ãã©ã®ã»ã«ã«é©çšããããæå®ããabbr â ä»ã®ã³ã³ããã¹ãå
ã®ã»ã«ãåç
§ãããšãã«ããããŒã»ã«ã«äœ¿çšãã代æ¿ã©ãã«abbrãcolspanãheadersãrowspanãscopeã䌎ã£ãŠããã©ã«ããtdèŠçŽ ã«å¯ŸããŠå®çŸ©ããããã®ãšããŠãHTMLTableCellElementã䜿çšãããthèŠçŽ ã¯ãããŒãã«ã§ããããŒã»ã«ã衚ãã
thèŠçŽ ã¯ãæå®ãããscopeã³ã³ãã³ã屿§ãæã£ãŠãããã
scope屿§ã¯ã次ã®ããŒã¯ãŒããšç¶æ
ãæã€åæå±æ§ã§ããïŒ
| ããŒã¯ãŒã | ç¶æ | æŠèŠ |
|---|---|---|
row | Row | ããããŒã»ã«ã¯ãåãè¡ã®åŸç¶ã»ã«ã®äžéšã«é©çšãããã |
col | Column | ããããŒã»ã«ã¯ãåãåã®åŸç¶ã»ã«ã®äžéšã«é©çšãããã |
rowgroup | Row Group | ããããŒã»ã«ã¯ãè¡ã°ã«ãŒãã®æ®ãã®ãã¹ãŠã®ã»ã«ã«é©çšãããã |
colgroup | Column Group | ããããŒã»ã«ã¯ãåã°ã«ãŒãã®æ®ãã®ãã¹ãŠã®ã»ã«ã«é©çšãããã |
ãã®å±æ§ã®æ¬ æå€ã®ããã©ã«ããšç¡å¹å€ã®ããã©ã«ãã¯äž¡æ¹ãšãAutoç¶æ ã§ãããïŒãã®ç¶æ ã§ã¯ãããããŒã»ã«ã¯ã³ã³ããã¹ãã«åºã¥ããŠéžæãããäžé£ã®ã»ã«ã«é©çšããããïŒ
thèŠçŽ ã®scope屿§ã¯ããã®èŠçŽ ãrow groupã«åºå®ãããŠããªãå Žåã¯row groupç¶æ
ã§ãã£ãŠã¯ãªããããã®èŠçŽ ãcolumn groupã«åºå®ãããªãå Žåã¯row groupç¶æ
ã§ãã£ãŠã¯ãªããªãã
thèŠçŽ ã¯ãæå®ãããabbrã³ã³ãã³ã屿§ãæã£ãŠãããããã®å€ã¯ãïŒããšãã°ããŒã¿ã»ã«ã«é©çšããããããŒã»ã«ãèšè¿°ããå Žåãªã©ïŒä»ã®ã³ã³ããã¹ãå
ã®ã»ã«ãåç
§ãããšãã«äœ¿çšãããããããŒã»ã«ã®ä»£æ¿ã©ãã«ã§ãªããã°ãªããªããéåžžããã¯ãå®å
šãªããããŒã»ã«ã®ç¥èªã§ããããæ¡å€§ãŸãã¯åãªãå¥ã®èšãåãã§ãæ§ããªãã
thèŠçŽ ããã³èŠçŽ ã®colspanãrowspanãheadersããã³scope屿§ã¯ãããŒãã«ã¢ãã«ã«åå ããã
次ã®äŸã¯ãscope屿§ã®rowgroupå€ãããããŒã»ã«ãé©çšããããŒã¿ã»ã«ã«ã©ã®ããã«åœ±é¿ãããã瀺ãã
ããã§ãããŒãã«ã瀺ãããŒã¯ã¢ããæçã¯ã次ã®ãšããïŒ
< table >
< thead >
< tr > < th > ID < th > Measurement < th > Average < th > Maximum
< tbody >
< tr > < td > < th scope = rowgroup > Cats < td > < td >
< tr > < td > 93 < th > Legs < td > 3.5 < td > 4
< tr > < td > 10 < th > Tails < td > 1 < td > 1
< tbody >
< tr > < td > < th scope = rowgroup > English speakers < td > < td >
< tr > < td > 32 < th > Legs < td > 2.67 < td > 4
< tr > < td > 35 < th > Tails < td > 0.33 < td > 1
</ table >
ããã¯ã次ã®è¡šãããããïŒ
| ID | Measurement | Average | Maximum |
|---|---|---|---|
| Cats | |||
| 93 | Legs | 3.5 | 4 |
| 10 | Tails | 1 | 1 |
| English speakers | |||
| 32 | Legs | 2.67 | 4 |
| 35 | Tails | 0.33 | 1 |
æåã®è¡ã®ããããŒã¯ãã¹ãŠããã®åã®è¡ãŸã§çŽæ¥é©çšãããã
è¡ã°ã«ãŒãç¶æ
ã®scope屿§ããã€ããããŒã¯ãæåã®åã®ã»ã«ãé€ãè¡ã°ã«ãŒãå
ã®ãã¹ãŠã®ã»ã«ã«é©çšãããã
æ®ãã®ããããŒã¯å³åŽã®ã»ã«ã«ã®ã¿é©çšãããã

tdãšthèŠçŽ ã®å
±é屿§tdããã³thèŠçŽ ã¯ãcolspanã³ã³ãã³ã屿§ãæå®ããŠãããããã®å€ã¯ã0ãã倧ãããã€1000以äžã®åŠ¥åœãªè² ã§ãªãæŽæ°ãæå®ããªããã°ãªããªãã
tdããã³thèŠçŽ ã«ã¯ãrowspanã³ã³ãã³ã屿§ãæå®æå®ããŠãããããã®å€ã¯ã65534以äžã®åŠ¥åœãªè² ã§ãªãæŽæ°ã§ãªããã°ãªããªãããã®å±æ§ã®å Žåãå€0ã¯ãã»ã«ãè¡ã°ã«ãŒãå
ã®æ®ãã®ãã¹ãŠã®è¡ã«ãŸãããããšãæå³ããã
ãããã®å±æ§ã¯ãã»ã«ããŸãããããã«ããããã®åãšè¡ã®æ°ãäžããããã®å±æ§ã¯ãããŒãã«ã¢ãã«ã®èšè¿°ã§èª¬æããããããªãã»ã«ã«éãªãããã«äœ¿çšãããŠã¯ãªããªãã
tdãšthèŠçŽ ã¯ãæå®ãããheadersã³ã³ãã³ã屿§ãæã£ãŠããããheaders屿§ãæå®ãããå Žåãé äžåã®äžæãªç©ºçœåºåãããŒã¯ã³ã®éåãããªãæååãå«ãŸãªããã°ãªãããä»ã®ããŒã¯ã³ãšåäžã®ãã®ã¯ãªãããããããtdãŸãã¯thèŠçŽ ãšåãããŒãã«ã«åå ããŠããthèŠçŽ ã®IDã®å€ãæããªããã°ãªãããããããããïŒããŒãã«ã¢ãã«ã«ãã£ãŠå®çŸ©ãããããã«ïŒtdãŸãã¯thèŠçŽ ãšåãããŒãã«ã«åå ããŠããthèŠçŽ ã®IDã®å€ãæããªããã°ãªããªãã
IDããã€thèŠçŽ ã®idã¯ãå€ããããã®ããŒã¯ã³ID idã®1ã€ãšããŠå«ãheaders屿§ãæã€åãããŒãã«ã§ãã¹ãŠã®tdãšthèŠçŽ ã«ããdirectly targetedãšãããããAãBã«çŽæ¥ç®æšãšãããããŸãã¯èŠçŽ Bã«ãã£ãŠèŠçŽ Cèªäœãç®æšãšããããã€èŠçŽ AãCã«ãã£ãŠçŽæ¥ç®æšãšããããã®ããããã®å ŽåãthèŠçŽ Aã¯thãŸãã¯tdèŠçŽ Bã®ç®æšã«ããããšããããã
thèŠçŽ ã¯ãããèªäœãç®æšãšãªããªãã
colspanãrowspanãããã³rowspan屿§ã¯ãããŒãã«ã¢ãã«ã«åå ããã
cell.cellIndexè¡ã®cellsãªã¹ãã§ã»ã«ã®äœçœ®ãè¿ããããåã®ã»ã«ãè€æ°ã®è¡ãŸãã¯åãã«ããŒãããããããªãã®ã§ãããã¯å¿
ãããããŒãã«ã«ãããã»ã«ã®xæ¹åã®äœçœ®ã«å¯Ÿå¿ããªãã
èŠçŽ ãè¡ã«ãªãå Žåã-1ãè¿ãã
èŠçŽ ã芪trèŠçŽ ãæã€å ŽåãcellIndex IDL屿§ã¯ã芪èŠçŽ ã®cellsã³ã¬ã¯ã·ã§ã³ã«ãããã»ã«ã®èŠçŽ ã®ã€ã³ããã¯ã¹ãè¿ããªããã°ãªããªããIf there is no such parent element, then the attribute must return â1.
scope IDL屿§ã¯ãæ¢ç¥ã®å€ã«å¶éãããåãååã®ã³ã³ãã³ã屿§ãåæ ããªããã°ãªããªãã
ããŸããŸãªããŒãã«èŠçŽ ããã³ãã®ã³ã³ãã³ã屿§ã¯ãããŒãã«ã¢ãã«ãååããŠå®çŸ©ããã
ããŒãã«ã¯ã座æš(x, y)ããã€ã¹ãããã®äºæ¬¡å
ã°ãªããäžã«æŽåãããã»ã«ãããªããã°ãªããã¯æéã§ããã空ãŸãã¯1ã€ä»¥äžã®ããããã®ã¹ããããæã€ãã°ãªããã1ã€ä»¥äžã®ã¹ããããæã€å Žåãx座æšã¯åžžã«0 â€Â x < xwidthã®ç¯å²ã«ãããy座æšã¯åžžã«0 â€Â y < yheightã®ç¯å²ã«ãããxwidthãšyheightã®ãããããŸãã¯äž¡æ¹ã0ã§ããå ŽåãããŒãã«ã¯ç©ºã§ããïŒäœã®ã¹ããããæããªãïŒãããŒãã«ã¯ãtableèŠçŽ ã«å¯Ÿå¿ããã
A cell is a set of slots anchored at a slot (cellx, celly), and with a particular width and height such that the cell covers all the slots with coordinates (x, y) where cellx â€Â x < cellx+width and celly â€Â y < celly+height. Cells can either be data cells or header cells. Data cells correspond to td elements, and header cells correspond to th elements. äž¡æ¹ã®çš®é¡ã®ã»ã«ã¯ã0å以äžã®é¢é£ããããããŒã»ã«ãæã€ããšãã§ããã
ç¹å®ã®ãšã©ãŒã®å Žåã2ã€ã®ã»ã«ãåäžã®ã¹ããããå æããããšã¯å¯èœã§ããã
A row is a complete set of slots from x=0 to x=xwidth-1, for a particular value of y. Rows usually correspond to tr elements, though a row group can have some implied rows at the end in some cases involving cells spanning multiple rows.
A column is a complete set of slots from y=0 to y=yheight-1, for a particular value of x. Columns can correspond to col elements. In the absence of col elements, columns are implied.
A row group is a set of rows anchored at a slot (0, groupy) with a particular height such that the row group covers all the slots with coordinates (x, y) where 0 â€Â x < xwidth and groupy â€Â y < groupy+height. Row groups correspond to tbody, thead, and tfoot elements. åè¡ã¯ãè¡ã°ã«ãŒãã«å¿
é ã§ã¯ãªãã
åã°ã«ãŒãã¯ãgroupx â€Â x < groupx+widthããã³0 â€Â y < yheightã®æ¡ä»¶ã§åº§æš(x, y)ããã€ãã¹ãŠã®ã¹ããããèŠããããªåºæã®widthããã€ã¹ããã(groupx, 0)ã«åºå®ãããåã®éåã§ãããåã°ã«ãŒãã¯ãcolgroupã«å¯Ÿå¿ãããå¿
ãããååã¯ãåã°ã«ãŒãã§å¿
é ã§ãªãã
è¡ã°ã«ãŒãã¯ãäºãã«éãªãããšãã§ããªããåæ§ã«ãåã°ã«ãŒãã¯ãäºãã«éãªãããšãã§ããªãã
ã»ã«ã¯ã2ã€ä»¥äžã®è¡ã°ã«ãŒãã«ç±æ¥ããã¹ããããå ããããšãã§ããªããããããã»ã«ãè€æ°ã®åã°ã«ãŒãã«ååšããããšã¯å¯èœã§ããã1ã€ã®ã»ã«ã®äžéšã圢æãããã¹ãŠã®ã¹ãããã¯ã0ãŸãã¯1åã®è¡ã°ã«ãŒããš0å以äžã®åã°ã«ãŒãã®äžéšã§ããã
ã»ã«ãåãè¡ãè¡ã°ã«ãŒããåã°ã«ãŒãã«å ããŠãããŒãã«ã¯ãé¢é£ããcaptionèŠçŽ ãæã€ããšãã§ãããããã¯ãããŒãã«ã«èŠåºãããŸãã¯å¡äŸãæäŸããã
ããŒãã«ã¢ãã«ãšã©ãŒã¯ãtableèŠçŽ ããã³ãã®åå«ã«ãã£ãŠè¡šãããããŒã¿ãšã®ãšã©ãŒã§ãããææžã¯ãããŒãã«ã¢ãã«ãšã©ãŒãæã£ãŠã¯ãªããªãã
ã©ã®èŠçŽ ãããŒãã«ã«ãããŠã©ã®ã¹ããããštableèŠçŽ ãšãé¢é£ä»ããããããæ±ºå®ãããããããŒãã«ïŒxwidthããã³yheightïŒã®æ¬¡å
ãæ±ºå®ãããããããã³ä»»æã®ããŒãã«ã¢ãã«ãšã©ãŒããããã©ãããæ±ºå®ããããã«ããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯æ¬¡ã®ã¢ã«ãŽãªãºã ã䜿çšããªããã°ãªããªãïŒ
Let xwidth be 0.
Let yheight be 0.
pending tfoot elementsãtfootèŠçŽ ãªã¹ãã«ããæåã«ç©ºã«ããã
the tableãtableèŠçŽ ã§è¡šãããããŒãã«ã«ãããxwidthããã³yheight倿°ã¯ãthe tableã®å¯žæ³ãäžãããThe table ããŒãã«ã¯ãåãã«ç©ºãšãªãã
If the table element has no children elements, then return the table (which will be empty).
the tableãštableèŠçŽ ã®æåã®captionèŠçŽ ã®åãé¢é£ä»ããããã®ãããªåãååšããªãå ŽåãããŒãã«ã¯é¢é£ããcaptionèŠçŽ ãæããªãã
current elementãtableèŠçŽ ã®æåã®èŠçŽ ã®åãšããã
ãã®ãããªæ¬¡ã®åããªããšãã«ãã®ã¢ã«ãŽãªãºã ã«ãããæé ãtableã®æ¬¡ã®åã«åé²ããããã«current elementããããèŠæ±ããå Žåããã®ã¢ã«ãŽãªãºã ã®çµããè¿ãã«ããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯endãšã©ãã«ä»ããããæé ã«ãžã£ã³ãããªããã°ãªããªãã
current elementãæ¬¡ã®èŠçŽ ã®ãããã§ããªãéãtableã®æ¬¡ã®åã«current elementãé²ããïŒ
current elementãcolgroupã§ããå Žåãæ¬¡ã®ãµãæé ã«åŸãïŒ
Column groupsïŒæ¬¡ã®é©åãªå Žåã«åŸã£ãŠcurrent elementãåŠçããïŒ
colèŠçŽ ã®åãæã€å Žåæ¬¡ã®æé ã«åŸãïŒ
xstartã«xwidthã®å€ãæãããã
current columnãcolgroupèŠçŽ ã®æåã®colèŠçŽ ã«ããã
ColumnsïŒcurrent columnã®colèŠçŽ ãspan屿§ãæã€å Žåãéè² æŽæ°ãè§£æããããã®èŠåã䜿çšããŠå±æ§ã®å€ãè§£æããã
è§£æå€ã®çµæããšã©ãŒãŸãã¯0ã§ãªãå Žåãspanããã®å€ã«ããã
ããã§ãªããã°ãcolèŠçŽ ãspan屿§ãæããªãããŸãã¯å±æ§å€ã®è§£æã®è©Šã¿ããšã©ãŒãŸãã¯0ãããããå Žåãspanã1ã«ããã
If span is greater than 1000, let it be 1000 instead.
spanã§xwidthãå¢ããã
the tableã«ãããæåŸã®spanåãcurrent column colèŠçŽ ã«å¯Ÿå¿ãããã
current columnãcolgroupèŠçŽ ã®æåŸã®colèŠçŽ ã®åã§ãªãå Žåãcurrent columnãcolgroupèŠçŽ ã®æ¬¡ã®colèŠçŽ ã®åãšããcolumnsã«ã©ãã«ä»ããããæé ã«æ»ãã
Let all the last columns in the table from x=xstart to x=xwidth-1 form a new column group, anchored at the slot (xstart, 0), with width xwidth-xstart, corresponding to the colgroup element.
colèŠçŽ ã®åãæããªãå ŽåcolgroupèŠçŽ ãspan屿§ãæã€å Žåãéè² æŽæ°ãè§£æããããã®èŠåã䜿çšããŠå±æ§å€ãè§£æããã
è§£æå€ã®çµæããšã©ãŒãŸãã¯0ã§ãªãå Žåãspanããã®å€ã«ããã
ããã§ãªããã°ãcolgroupèŠçŽ ãspan屿§ãæããªãããŸãã¯å±æ§å€ã®è§£æã®è©Šã¿ããšã©ãŒãŸãã¯0ãããããå Žåãspanã1ã«ããã
If span is greater than 1000, let it be 1000 instead.
spanã§xwidthãå¢ããã
Let the last span columns in the table form a new column group, anchored at the slot (xwidth-span, 0), with width span, corresponding to the colgroup element.
current elementãtableã®æ¬¡ã®åãžåé²ãããã
current elementãæ¬¡ã®èŠçŽ ã®ãããã§ããªãéãtableã®æ¬¡ã®åã«current elementãé²ããïŒ
current elementãcolgroupèŠçŽ ã§ããå Žåãäžèšã®column groupsã«ã©ãã«ä»ããããæé ã«ãžã£ã³ãããã
Let ycurrent be 0.
list of downward-growing cellsã空ã®ãªã¹ãã«ããã
RowsïŒcurrent elementãæ¬¡ã®èŠçŽ ã®ãããã§ããªãéãcurrent elementãtableã®æ¬¡ã®åãžåé²ãããïŒ
current elementãtrã§ããå ŽåãåãåŠçããããã®ã¢ã«ãŽãªãºã ãå®è¡ããcurrent elementãtableã®æ¬¡ã®åã«åé²ãããrowsã«ã©ãã«ä»ããããæé ãè¿ãã
åã°ã«ãŒããçµäºãããããã®ã¢ã«ãŽãªãºã ãå®è¡ããã
current elementãtfootã§ããå Žåããã®èŠçŽ ã«pending tfoot elementsã®ãªã¹ãã远å ããcurrent elementãtableã®æ¬¡ã®åã«åé²ãããrowsã«ã©ãã«ä»ããããæé ã«æ»ãã
current elementã¯theadãŸãã¯tbodyã®ããããã§ããã
åã°ã«ãŒããåŠçããããã®ã¢ã«ãŽãªãºã ãå®è¡ããã
current elementãtableã®æ¬¡ã®åãžåé²ãããã
rowsã«ã©ãã«ä»ããããæé ã«æ»ãã
End: For each tfoot element in the list of pending tfoot elements, in tree order, run the algorithm for processing row groups.
ã¹ãããã«åºå®ãããã»ã«ãæããªãã¹ãããã®ã¿ãå«ãthe tableã«ãããŠè¡ãŸãã¯åãååšããå Žåãããã¯ããŒãã«ã¢ãã«ãšã©ãŒã§ããã
the tableãè¿ãã
è¡ã°ã«ãŒããåŠçããããã®ã¢ã«ãŽãªãºã ãããã¯theadãtbodyãããã³tfootèŠçŽ ãåŠçããããã®äžèšã®äžé£ã®æé ã®èšå®ã«ãã£ãŠåŒã³åºãããïŒ
ystartã«yheightã®å€ãæãããã
åŠçãããŠããèŠçŽ ã®åã§ããåtrèŠçŽ ã«å¯ŸããŠãããªãŒé ã«ãè¡ãåŠçããããã®ã¢ã«ãŽãªãºã ãå®è¡ããã
If yheight > ystart, then let all the last rows in the table from y=ystart to y=yheight-1 form a new row group, anchored at the slot with coordinate (0, ystart), with height yheight-ystart, corresponding to the element being processed.
åã°ã«ãŒããçµäºãããããã®ã¢ã«ãŽãªãºã ãå®è¡ããã
åã°ã«ãŒããçµäºãããããã®ã¢ã«ãŽãªãºã ãããã¯è¡ã®ãããã¯ãéå§ããã³çµäºããå Žåã«äžèšã®äžé£ã®æé ã§åŒã³åºãããïŒ
ycurrentãyheightããå°ããéãæ¬¡ã®æé ã«åŸãïŒ
äžåãã«æé·ããã»ã«ã®ããã®ã¢ã«ãŽãªãºã ãå®è¡ããã
ycurrentã1å¢ããã
list of downward-growing cellsã空ã«ããã
è¡ãåŠçããããã®ã¢ã«ãŽãªãºã ãããã¯trèŠçŽ ãåŠçããããã®äžèšã®æé ã®ã»ããã§åŒã³åºãããïŒ
yheightãycurrentãšçããå Žåãyheightã1å¢ãããïŒycurrentã¯yheightãã倧ãããªããïŒ
xcurrentã0ã«ããã
äžåãã«æé·ããã»ã«ã®ããã®ã¢ã«ãŽãªãºã ãå®è¡ããã
åŠçãããŠããtrèŠçŽ ãtdãŸãã¯thèŠçŽ ã®åãæããªãå Žåãycurrentã1å¢ããããã®äžé£ã®æé ãäžæ¢ããäžèšã®ã¢ã«ãŽãªãºã ã«æ»ãã
current cellãåŠçãããŠããtrèŠçŽ ã«ãããæåã®tdãŸãã¯thèŠçŽ ã®åã«ããã
CellsïŒxcurrentãxwidthããå°ãããã€åº§æš(xcurrent, ycurrent)ããã€ã¹ããããå²ãåœãŠãããã»ã«ããã§ã«æã€éãxcurrentã1å¢ããã
xcurrentãxwidthãšçããå Žåãxwidthã1å¢ãããïŒxcurrentã¯xwidthãã倧ãããªããïŒ
current cellãcolspan屿§ãæã€å Žåããã®å±æ§ã®å€ãè§£æãããããŠcolspanãçµæãšããã
ãã®å€ã®è§£æã«å€±æããããŸãã¯0ãè¿ãããå ŽåããŸãã¯å±æ§ãäžåšã®å Žåãcolspanã1ã«ããã
If colspan is greater than 1000, let it be 1000 instead.
current cellãrowspan屿§ãæã€å Žåããã®å±æ§ã®å€ãè§£æãããããŠrowspanãçµæãšããã
ãã®å€ã®è§£æã«å€±æããå ŽåããŸãã¯å±æ§ãäžåšã®å Žåã代ããã«rowspanã1ã«ããã
If rowspan is greater than 65534, let it be 65534 instead.
Let cell grows downward be false.
If rowspan is zero, then set cell grows downward to true and set rowspan to 1.
If xwidth < xcurrent+colspan, then let xwidth be xcurrent+colspan.
If yheight < ycurrent+rowspan, then let yheight be ycurrent+rowspan.
Let the slots with coordinates (x, y) such that xcurrent â€Â x < xcurrent+colspan and ycurrent â€Â y < ycurrent+rowspan be covered by a new cell c, anchored at (xcurrent, ycurrent), which has width colspan and height rowspan, corresponding to the current cell element.
current cellèŠçŽ ãthèŠçŽ ã§ããå Žåããã®æ°ããã»ã«cãããããŒã»ã«ã«ãããããã§ãªããã°ãããŒã¿ã»ã«ã«ããã
ã©ã®ããããŒã»ã«ãcurrent cellèŠçŽ ã«é©çšããããã確ç«ããããã«ã次ã®ã»ã¯ã·ã§ã³ã§èª¬æãããããããŒã»ã«ãå²ãåœãŠãããã®ã¢ã«ãŽãªãºã ã䜿çšããã
åŒã³åºããããã¹ãŠã®ã¹ãããããã§ã«ã¹ããããèŠãã»ã«ãæã£ãŠããå Žåãããã¯ããŒãã«ã¢ãã«ãšã©ãŒã§ãããåã®ã¹ãããã¯çŸåš2ã€ã®ã»ã«ã®éãªããæã€ã
cell grows downwardãtrueã§ããå Žåãã¿ãã«{c, xcurrent, colspan}ãlist of downward-growing cellsã«è¿œå ããã
xcurrentãcolspanå¢ããã
current cellãåŠçãããŠããtrèŠçŽ ã«ãããæåŸã®tdãŸãã¯thèŠçŽ ã®åã§ããå Žåãycurrentã1å¢ããããã®äžé£ã®æé ãäžæ¢ããäžèšã®ã¢ã«ãŽãªãºã ã«æ»ãã
current cellãåŠçãããŠããtrèŠçŽ ã«ãããæ¬¡ã®tdãŸãã¯thèŠçŽ ã®åã«ããã
cellsã«ã©ãã«ä»ããããæé ã«æ»ãã
äžèšã®ã¢ã«ãŽãªãºã ãäžæ¹ã«æé·ããã»ã«ã®ããã®ã¢ã«ãŽãªãºã ãå®è¡ããããšããŠãŒã¶ãŒãšãŒãžã§ã³ãã«èŠæ±ããå Žåãããããã°ãlist of downward-growing cellsã«ãããå{cell, cellx, width}ã¿ãã«ã«å¯ŸããŠããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ã»ã«cellãæ¡åŒµããªããã°ãªããããã®çµæcellx â€Â x < cellx+widthã®å Žåã«åº§æš(x, ycurrent)ããã€ã¹ããããèŠãã
åã»ã«ã¯0å以äžã®ããããŒã»ã«ãå²ãåœãŠãããšãã§ãããã»ã«principal cellãžã®ããããŒã»ã«ãå²ãåœãŠãããã®ã¢ã«ãŽãªãºã ã¯æ¬¡ã®ãšããã§ããã
header listã空ã®ã»ã«ã®ãªã¹ãã«ããã
(principalx, principaly)ãprincipal cellãåºå®ãããã¹ãããã®åº§æšã«ããã
headers屿§ãæã€å ŽåTake the value of the principal cell's headers attribute and split it on ASCII whitespace, letting id list be the list of tokens obtained.
ããŒã¯ã³ã«çããIDããã€Documentã«ãããæåã®èŠçŽ ãåãããŒãã«ã«ãããã»ã«ã§ããããã€ãã®ã»ã«ãprincipal cellã§ãªãå Žåãid listã«ãããåããŒã¯ã³ã«å¯ŸããŠãheader listã®ã»ã«ãå ããã
headers屿§ãæããªãå Žåprincipalwidthãprincipal cellã®å¹ ã«ããã
principalheightãprincipal cellã®é«ãã«ããã
For each value of y from principaly to principaly+principalheight-1, run the internal algorithm for scanning and assigning header cells, with the principal cell, the header list, the initial coordinate (principalx, y), and the increments Îx=â1 and Îy=0.
For each value of x from principalx to principalx+principalwidth-1, run the internal algorithm for scanning and assigning header cells, with the principal cell, the header list, the initial coordinate (x, principaly), and the increments Îx=0 and Îy=â1.
If the principal cell is anchored in a row group, then add all header cells that are row group headers and are anchored in the same row group with an x-coordinate less than or equal to principalx+principalwidth-1 and a y-coordinate less than or equal to principaly+principalheight-1 to header list.
If the principal cell is anchored in a column group, then add all header cells that are column group headers and are anchored in the same column group with an x-coordinate less than or equal to principalx+principalwidth-1 and a y-coordinate less than or equal to principaly+principalheight-1 to header list.
ãã¹ãŠã®ç©ºã»ã«ãheader listããé€å»ããã
ä»»æã®è€è£œç©ãheader listããé€å»ããã
principal cellãååšããå Žåãheader listãããããé€å»ããã
header listã«ãããããããŒãprincipal cellã«å²ãåœãŠãã
principal cellãheader listãåæåº§æš(initialx, initialy)ãããã³ÎxãšÎyã®å¢åã§äžãããããããããŒã»ã«ãæäœããŠå²ãåœãŠãããã®åæã¢ã«ãŽãªãºã ã¯ã次ã®ãšããïŒ
xãinitialxãšçããããã
yãinitialyãšçããããã
opaque headersã空ã®ã»ã«ã®ãªã¹ãã«ããã
in header blockãtrueã«ããheaders from current header blockãprincipal cellã®ã¿ãå«ãã»ã«ã®ãªã¹ãã«ããã
in header blockãfalseã«ããheaders from current header blockã空ã®ã»ã«ã®ãªã¹ãã«ããã
LoopïŒxãÎxå¢å ããyãÎyå¢å ããã
ãã®ã¢ã«ãŽãªãºã ã®åèµ·åã«å¯ŸããŠãÎxãšÎyã®ããããã¯-1ã§ãããããäžæ¹ã¯0ãšãªãã
If either x or y are less than 0, then abort this internal algorithm.
ã¹ããã(x, y)ãèŠãã»ã«ãååšããªãå ŽåããŸãã¯ã¹ããã(x, y)ãèŠãã»ã«ãè€æ°ååšããå Žåãloopã«ã©ãã«ä»ãããããµãæé ã«æ»ãã
current cellãã¹ããã(x, y)ãèŠãã»ã«ã«ããã
in header blockãtrueã«èšå®ããã
current cellãheaders from current header blockã«å ããã
blockedãfalseã«ããã
current cellãšåãx座æšã«ããã€current cellãšåãå¹ ã«åºå®ãããopaque headersãªã¹ãã§ä»»æã®ã»ã«ãååšããå Žåãblockedãtrueã«ããã
current cellãåããããŒã§ãªãå Žåãblockedãtrueã«ããã
current cellãšåãy座æšã«ããã€current cellãšåãé«ãã«åºå®ãããopaque headersãªã¹ãã§ä»»æã®ã»ã«ãååšããå Žåãblockedãtrueã«ããã
current cellãè¡ããããŒã§ãªãå Žåãblockedãtrueã«ããã
If blocked is false, then add the current cell to the header list.
in header blockãfalseã«èšå®ãããheaders from current header blockã«ããããã¹ãŠã®ã»ã«ãopaque headersãªã¹ãã«å ããheaders from current header blockãªã¹ãã空ã«ããã
loopã«ã©ãã«ä»ããããæé ã«æ»ãã
A header cell anchored at the slot with coordinate (x, y) with width width and height height is said to be a column header if any of the following are true:
A header cell anchored at the slot with coordinate (x, y) with width width and height height is said to be a row header if any of the following are true:
the cell's scope attribute is in the Auto state, the cell is not a column header, and there are no data cells in any of the cells covering slots with x-coordinates x .. x+width-1.
A header cell is said to be a column group header if its scope attribute is in the Column Group state.
A cell is said to be an empty cell if it contains no elements and its child text content, if any, consists only of ASCII whitespace.
ãã®ç¯ã¯éèŠç¯çã§ããã
次ã¯ãSmithsonian physical tables, Volume 71ã®ããŒãã«45ã®äžéšãããŒã¯ã¢ããããæ¹æ³ã®1ã€ã瀺ãïŒ
< table >
< caption > Specification values: < b > Steel</ b > , < b > Castings</ b > ,
Ann. A.S.T.M. A27-16, Class B;* P max. 0.06; S max. 0.05.</ caption >
< thead >
< tr >
< th rowspan = 2 > Grade.</ th >
< th rowspan = 2 > Yield Point.</ th >
< th colspan = 2 > Ultimate tensile strength</ th >
< th rowspan = 2 > Per cent elong. 50.8 mm or 2 in.</ th >
< th rowspan = 2 > Per cent reduct. area.</ th >
</ tr >
< tr >
< th > kg/mm< sup > 2</ sup ></ th >
< th > lb/in< sup > 2</ sup ></ th >
</ tr >
</ thead >
< tbody >
< tr >
< td > Hard</ td >
< td > 0.45 ultimate</ td >
< td > 56.2</ td >
< td > 80,000</ td >
< td > 15</ td >
< td > 20</ td >
</ tr >
< tr >
< td > Medium</ td >
< td > 0.45 ultimate</ td >
< td > 49.2</ td >
< td > 70,000</ td >
< td > 18</ td >
< td > 25</ td >
</ tr >
< tr >
< td > Soft</ td >
< td > 0.45 ultimate</ td >
< td > 42.2</ td >
< td > 60,000</ td >
< td > 22</ td >
< td > 30</ td >
</ tr >
</ tbody >
</ table >
ãã®ããŒãã«ã¯ã次ã®ããã«ãªãïŒ
| Grade. | Yield Point. | Ultimate tensile strength | Per cent elong. 50.8 mm or 2 in. | Per cent reduct. area. | |
|---|---|---|---|---|---|
| kg/mm2 | lb/in2 | ||||
| Hard | 0.45 ultimate | 56.2 | 80,000 | 15 | 20 |
| Medium | 0.45 ultimate | 49.2 | 70,000 | 18 | 25 |
| Soft | 0.45 ultimate | 42.2 | 60,000 | 22 | 30 |
次ã¯ã2008幎床ã®Apple瀟ã®10-Kå ±åæžã®46ããŒãžã§ç²å©ç衚ãããŒã¯ã¢ããããæ¹æ³ã®1ã€ã瀺ãïŒ
< table >
< thead >
< tr >
< th >
< th > 2008
< th > 2007
< th > 2006
< tbody >
< tr >
< th > Net sales
< td > $ 32,479
< td > $ 24,006
< td > $ 19,315
< tr >
< th > Cost of sales
< td > 21,334
< td > 15,852
< td > 13,717
< tbody >
< tr >
< th > Gross margin
< td > $ 11,145
< td > $ 8,154
< td > $ 5,598
< tfoot >
< tr >
< th > Gross margin percentage
< td > 34.3%
< td > 34.0%
< td > 29.0%
</ table >
ãã®ããŒãã«ã¯ã次ã®ããã«ãªãïŒ
| 2008 | 2007 | 2006 | |
|---|---|---|---|
| Net sales | $ 32,479 | $ 24,006 | $ 19,315 |
| Cost of sales | 21,334 | 15,852 | 13,717 |
| Gross margin | $ 11,145 | $ 8,154 | $ 5,598 |
| Gross margin percentage | 34.3% | 34.0% | 29.0% |
以äžã¯ããã®ææžã®åãããŒãžã«äžããå¶æ¥è²»çšããŒãã«ãããŒã¯ã¢ããããæ¹æ³ã瀺ãïŒ
< table >
< colgroup > < col >
< colgroup > < col > < col > < col >
< thead >
< tr > < th > < th > 2008 < th > 2007 < th > 2006
< tbody >
< tr > < th scope = rowgroup > Research and development
< td > $ 1,109 < td > $ 782 < td > $ 712
< tr > < th scope = row > Percentage of net sales
< td > 3.4% < td > 3.3% < td > 3.7%
< tbody >
< tr > < th scope = rowgroup > Selling, general, and administrative
< td > $ 3,761 < td > $ 2,963 < td > $ 2,433
< tr > < th scope = row > Percentage of net sales
< td > 11.6% < td > 12.3% < td > 12.6%
</ table >
ãã®ããŒãã«ã¯ã次ã®ããã«ãªãïŒ
| 2008 | 2007 | 2006 | |
|---|---|---|---|
| Research and development | $ 1,109 | $ 782 | $ 712 |
| Percentage of net sales | 3.4% | 3.3% | 3.7% |
| Selling, general, and administrative | $ 3,761 | $ 2,963 | $ 2,433 |
| Percentage of net sales | 11.6% | 12.3% | 12.6% |