tags:

views:

19

answers:

1

In what cases justify the "height" attr of TD over use of the "height" attribute in TR. I understand needs to be bounded to a 2D space. And TR only has "height" because it's horizontal object concept. But TD could be qualified as a column so potentially could just be satisfied with a "width" attribute.

Sure, you can claim that TD is actually representing a table cell (w. x/y components) but a cell cannot exist w.o a table row so TD height is superfluous?

+1  A: 

In the case that you wanted to follow the HTML specification. Though most browsers support it, height was never specified as an attribute of TR in the W3C reference specification, but both width and height were specified as attributes of TD in HTML 3.2.

In any case, the width and height attributes were both deprecated for TD as of HTML 4.0, and you should be using CSS anyway.

Gerald
I'm using html in emails. Not sure if it supports css (outlook 2007)
ilupper