Well apparently you're correct. Nesting a table within a table is only possible if the inner table is within a td according to the HTML spec. (Not that it doesn't render ok in most browsers) I was copying from some Google result on nested tables. I managed to get my wanted result by setting a correct colspan on the td tag.
Thanks everyone.