From the course: HTML & CSS: Creating Forms
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Submit and other types of buttons - HTML Tutorial
From the course: HTML & CSS: Creating Forms
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Basic form structure7m 44s
-
(Locked)
Text, email, and URL input types6m 57s
-
(Locked)
Number input type6m 3s
-
(Locked)
Date and time input types6m 40s
-
(Locked)
Radio buttons3m 47s
-
(Locked)
Select5m 29s
-
(Locked)
Textarea and additional input types7m 15s
-
(Locked)
Submit and other types of buttons5m 6s
-
(Locked)
Attributes used in forms6m 51s
-
-
-
-
-