Re: Width and height attributes

David Bailey wrote:

> I would however, like to suggest the removal (or depreciation)
> of all width and height attributes from the HTML 5 specification,
> applying to all elements that use them, such as <img>, <embed>,
> <object>, <video> etc.

Depends - width, height, align, and (rarely) valign are required
for a minimally working page "visible with any browser" (without
CSS).  Such old browsers won't know <object> or <video>, there
these legacy attributes are unnecessary.

For the very desirable decorations explained in your article let
CSS (where available) just overrule the legacy attributes (where
present).  That could be a strategy for new pages trying to be
"visible with any browser" - if a few Netscape 4.x users insist
on enabling "CSS" in this UA let them get what they asked for.

Deprecating these legacy attributes (where they are legacy, not
for new elements like <video>) is IMHO okay, authors should not
be tempted to use such cruft without knowing *why* they do this.

 Frank

Received on Thursday, 31 January 2008 11:05:47 UTC