OK, thanks for the replies. Two further questions, though.
Firstly, can I do this:
Only it's not doing anything for me.
Secondly, I seem to be setting the attribute correctly here:
but the table that gets produced looks like it would if you'd missed a couple of TD's off a TR and not set the colspan to compensate.
What am I doing wrong?