From the course: HTML & CSS: Creating Forms

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Submit and other types of buttons

Submit and other types of buttons - HTML Tutorial

From the course: HTML & CSS: Creating Forms

Start my 1-month free trial

Submit and other types of buttons

- [Instructor] Every form needs submit button. There are several different ways to create buttons for forms, including submit buttons, reset buttons, and generic buttons, as well as buttons made out of images. The submit input type is the original way to create a submit button. Type tells the browser that it's a submit button, and the value tells the browser what word to put on the button. Submit is the default word if you don't specify. I'm going to add a button here on line 13. Input type equals submit value; and the text I want on the button, let's say, "Submit Answers." Then, add a couple of line breaks. Refresh, and there is my button. You can use other words as appropriate, but make sure it's clear to the user that they will submit the form when they click it. For example, it could say, "Add to cart," "Donate," "Place order," that sort of thing. The next input type is reset. This button will clear all the fields in a form. Most forms don't need a reset button, and you want to…

Contents