| <title>colSpan test</title> |
| <script type="text/javascript"> |
| var x=document.getElementById('myTable1').rows[0].cells |
| var x=document.getElementById('myTable2').rows[0].cells |
| <body onload = "colSpanOne(); colSpanTwo()"> |
| <p>Tests: the colspan attribute<br> |
| The colSpan attribute specifies the number of columns spanned by the current cell. The default value of |
| this attribute is one ("1"). The value zero ("0") means that the cell spans all columns from the current |
| column to the last column of the column group (COLGROUP) in which the cell is defined. |
| <p>The first table tests the default value of one, and an input of 7, which is within the normal range of expect input. |
| The first column in the first row should span only column "one" and the second cell should span all of the other columns. |
| The second table tests the zero value. "Just A" should span "A" and "Just B" should span "B." |
| <table id="myTable1" border="1"> |
| <caption>Testing Default and Regular Input</caption> |
| <td colspan="4">First</td> |
| <td colspan="4">All the Rest</td> |
| <table id="myTable2" border="1"> |
| <caption>Testing Zero Special Case</caption> |
| <td colspan="4">Just A</td> |
| <td colspan="4">Just B</td> |