Re: BUTTON element

At 11:49p -0400 07/15/97, Liam Quinn wrote:
 > I'm a bit confused by HTML 4.0's introduction of the BUTTON element.  It
 > seems to me that this element is new, unsupported, not backwards-
 > compatible, and presentation-based.  The HTML 4.0 draft describes it as
 > follows:
 >
 > - ----
 > A BUTTON element whose type is "submit" and whose content is an image
 > (e.g., the IMG element) is very similar to an INPUT element whose type is
 > "image". They both cause a form to be submitted, but their presentation is
 > different. In this context, an INPUT element is supposed to be rendered as
 > a "flat" image, while a BUTTON is supposed to be rendered as a button
 > (e.g., with relief and an up/down motion when clicked).
 > - ----<URL:http://www.w3.org/TR/WD-html40/interact/forms.html#h-9.1.2.2>----
 >
 > Declaring how elements are "supposed to be rendered" seems strange given
 > the draft's overall emphasis on platform independence and structural
 > markup.

And here's a better idea:

   <INPUT TYPE=image SRC="buttonup.gif" PRESSED="buttondn.gif">

This is backwards-compatible, plus it gives the author greater control
over how the "highlight" appears when the button is pressed. Perhaps
this PRESSED attribute could be added to IMG/OBJECT as well?

__________________________________________________________________________
  Walter Ian Kaye <boo_at_best*com>    Programmer - Excel, AppleScript,
          Mountain View, CA                         ProTERM, FoxPro, HTML
 http://www.natural-innovations.com/     Musician - Guitarist, Songwriter

Received on Wednesday, 16 July 1997 01:38:37 UTC