Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Forms

<BUTTON ...>

Usage Recommendation
Use <INPUT ...> instead.

  • TYPE: what type of button is this
  • onClick: script to run when the user clicks here
  • NAME: name of this button element
  • VALUE: the value sent with the form
 

<BUTTON ...> creates a button. Unlike <INPUT ...>, <BUTTON ...> is a container which allows you to put regular HTML contents in the button, including text and pictures. Unfortunately, <BUTTON ...> does not degrade well, and so at this time it's best to stick with <INPUT ...>.

this code produces this
<BUTTON TYPE=SUBMIT>
<IMG SRC="../graphics/sfsmile.gif" HEIGHT=97 WIDTH=105
 ALT="Starflower" ALIGN="ABSMIDDLE">
<STRONG>Send It In!</STRONG>
</BUTTON>

By default, <BUTTON ...> creates a plain button, much like <INPUT TYPE=BUTTON>. With the TYPE attribute, <BUTTON ...> can also create submit and reset buttons. The HTML code put between <BUTTON ...> and </BUTTON> isnot the value sent with the form. The value of the button determined by the <INPUT VALUE="..."> attribute.

<BUTTON TYPE="..."> >>>

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com