1. Home
  2. Computing & Technology
  3. Web Design / HTML

<input type="button" />

By , About.com Guide

<input type="button" /> Description:

The <input type="button" /> tag uploads files to the Web server through the form.

<input type="button" /> Web Browser Support:
<input type="button" /> Attributes:
<input type="button" /> Usage:
  • standard input button:
    <form>
    <input type="button" name="button1" value="click me" />
    </form>
  • styled input button:
    <form>
    <input type="button" name="button1" value="click me" style="background-color: #cc0000; color: #ffffff;" />
<input type="button" /> Special Notes:
  • This button will not submit the form to the server by itself. You need to use JavaScript to cause an action.
  • I would recommend using the <button> element rather than this element, as the <button> element is more flexible.
More <input type="button" /> Information:

Return to the <input /> Element
Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.