![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've always assumed that each TR of a table needs to have the same number of TDs in each row for the table to be valid. (Or, if not the same number of TDs, that all the colspans + TDs add up). I'm working in .net using a datalist with two columns. If there is an odd number of records, the control just skips the last TD like this: tr td -item1- /td td -item2- /td /tr tr td -item3- /td /tr So, I look at this and think this is just plain wrong, but it does render OK in the browsers, and, sure enough, it DOES validate. I've looked through the W3C site trying to find a spec that says whether or not each TR needs a balanced set of TDs, but I can't find anything. Anyone have a definitive answer to this? -Darrel |
#3
| |||
| |||
|
|
I've always assumed that each TR of a table needs to have the same number of TDs in each row for the table to be valid. (Or, if not the same number of TDs, that all the colspans + TDs add up). I'm working in .net using a datalist with two columns. If there is an odd number of records, the control just skips the last TD like this: tr td -item1- /td td -item2- /td /tr tr td -item3- /td /tr So, I look at this and think this is just plain wrong, but it does render OK in the browsers, and, sure enough, it DOES validate. I've looked through the W3C site trying to find a spec that says whether or not each TR needs a balanced set of TDs, but I can't find anything. Anyone have a definitive answer to this? -Darrel |
#4
| |||
| |||
|
|
I've always assumed that each TR of a table needs to have the same number of TDs in each row for the table to be valid. (Or, if not the same number of TDs, that all the colspans + TDs add up). I'm working in .net using a datalist with two columns. If there is an odd number of records, the control just skips the last TD like this: tr td -item1- /td td -item2- /td /tr tr td -item3- /td /tr So, I look at this and think this is just plain wrong, but it does render OK in the browsers, and, sure enough, it DOES validate. I've looked through the W3C site trying to find a spec that says whether or not each TR needs a balanced set of TDs, but I can't find anything. Anyone have a definitive answer to this? -Darrel |
#5
| |||
| |||
|
|
No they do not. You can join td together in property section |
#6
| |||
| |||
|
|
As far as I know, it's wrong to skip td tags like that. The rule (as I understand it) is that the table must be internally consistent in structure. This means that each row must contain the same number of columns (real or spanned), and each column must contain the same number of rows (real or spanned). |
#7
| |||
| |||
|
|
I've always assumed that each TR of a table needs to have the same number of TDs in each row for the table to be valid. |
|
I'm working in .net using a datalist with two columns. If there is an odd number of records, the control just skips the last TD like this: [...] So, I look at this and think this is just plain wrong, but it does render OK in the browsers, and, sure enough, it DOES validate. |
|
I've looked through the W3C site trying to find a spec that says whether or not each TR needs a balanced set of TDs, but I can't find anything. Anyone have a definitive answer to this? |

#8
| |||
| |||
|
#9
| |||
| |||
|
|
I've looked through the W3C site trying to find a spec that says whether or not each TR needs a balanced set of TDs, but I can't find anything. Anyone have a definitive answer to this? |
#10
| |||
| |||
|
|
I've always assumed that each TR of a table needs to have the same number of TDs in each row for the table to be valid. (Or, if not the same number of TDs, that all the colspans + TDs add up). |
![]() |
| Thread Tools | |
| Display Modes | |
| |