Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Submit!

Every form must include a button that submits the form data to the server. You can put any label you like on this button with the value attribute:

<input type="submit" value="Place My Order Now!" />

A gray button will be sized to fit the label you put in the value attribute. When the user clicks it, all data items on the form are sent to the email address or program script specified in the form action attribute.

You can also include a button that clears all entries on the form so users can start over if they change their minds or make mistakes. Use the following:

<input type="reset" value="Clear This Form and Start Over" />

Share ThisShare This

Informit Network