W3C home > Mailing lists > Public > www-html@w3.org > July 1999

RE: <BUTTON> tag

From: David Norris <kg9ae@geocities.com>
Date: Fri, 30 Jul 1999 20:30:34 -0500
To: "Aditya Hermawan" <aditya-h@mitra.net.id>
Cc: <sven.latham@snellwilcox.com>, "W3HTML" <www-html@w3.org>
Message-ID: <NABBJAELJCIBPNFJODIGIEAOFGAA.kg9ae@geocities.com>
Sven Latham:
> 'Button' doesn't require a form.

This is true!  BUTTON is allowed within A |INPUT | SELECT | TEXTAREA | LABEL
| BUTTON | FORM | FIELDSET.

> Neither does <INPUT....> but at least button is shorter.

Huh?  INPUT definitely requires a FORM.

Aditya Hermawan:
> I want to ask what is the meaning and the use of the <BUTTON> tag? What
> is the difference between it with <INPUT TYPE="submit">, can it be used

Have you read the W3C's HTML 4.0 specs?  It states quite clearly the
differences between BUTTON and INPUT.  Basically, BUTTON has content and
INPUT is empty.  (e.g. <BUTTON>Some HTML on the button face!<IMG
src="abouttime.jpeg"></BUTTON> versus <INPUT>)

Read the HTML Specs concerning BUTTON:
http://www.w3.org/TR/REC-html40/interact/forms.html#edef-BUTTON

,David Norris

World Wide Web - http://www.geocities.com/CapeCanaveral/Lab/1652/
Home Computer - http://illusionary.tzo.cc/
Page via mail - 412039@pager.mirabilis.com
ICQ Universal Internet Number - 412039
E-Mail - kg9ae@geocities.com
Received on Friday, 30 July 1999 21:26:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:39 GMT