W3C home > Mailing lists > Public > public-html-comments@w3.org > January 2008

Re: Width and height attributes

From: Frank Ellermann <hmdmhdfmhdjmzdtjmzdtzktdkztdjz@gmail.com>
Date: Thu, 31 Jan 2008 12:06:42 +0100
Message-ID: <006b01c863f9$5ebc3ba0$7458863e@xyzzy>
To: <public-html-comments@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:13:58 GMT