Forum Moderators: open

Message Too Old, No Replies

table height is deprecated - now what?

         

tsvet

8:43 pm on Apr 23, 2003 (gmt 0)

10+ Year Member



As the "height" element has been deprecated, what do we use to set height for a table, table row or a table cell?
Cheers!

Birdman

8:53 pm on Apr 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will need to use CSS [w3.org] for all your document styles.

tedster

9:03 pm on Apr 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, the height attribute is deprecated. First, that doesn't mean it's been declared obsolete - it is still supported in current user agents. But as Birdman mentioned, the movement is to separate all presentational elements out of the [X]HTML spec, leaving it to handle only the content and its logical structure. Presentational instructions should be handled with CSS.

No, it ain't always easy. We're in a transition time, mostly trying to fix what proved to be wrong directions in HTML 3.2

Deprecated HTML [webmasterworld.com]

DrDoc

9:09 pm on Apr 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it ain't always easy

It can't get any worse than it was just a couple years ago, with all the code bloat and hacks to make a page even render ok cross-browser.

Things are getting better, much better... It's just a lot of hard work to reach that point.

tedster

9:38 pm on Apr 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I placed a link in my earlier post, but I thought that readers who stop into this thread might appreciate reading the list of deprecated HTML right here. Where CSS isn't the adaptation needed, then the suggested change is noted.

Deprecated Tags
<applet> - use <object>
<basefont>
<center>
<dir> - use <ul>
<font>
<isindex> - use <input>
<listing> - use <pre>
<menu> - use <ul>
<plaintext> - use <pre>
<s> - use <del>
<strike> - use <del>
<u>
<xmp> - use <pre>

Deprecated Attributes
align=
alink=
background=
bgcolor=
color=
hspace=
link=
size=
text=
type=
vlink=
vspace=

Also, width= and height= are deprecated attributes for <td> elements [w3.org].