What Is an HTML Submit Button?
HTML forms are used to collect different types of user input. HTML5 Input, with multiple new form input types, provides better input control and validation.
HTML form
- HTML5 has several new form input types. These new features provide better input control and verification.
- 1.Input type-email
- The email type is used for input fields that should contain e-mail addresses. When the form is submitted, the value of the email field is automatically verified.
- 2.Input type-url
- The url type is used for input fields that should contain URL addresses. When the form is submitted, the value of the url field is automatically validated.
- 3.Input type-number
- The number type is used for input fields that should contain numeric values. You can also set limits on the numbers accepted:
- 4.Input type-range
- The range type is used for input fields that should contain numeric values within a range.
- The range type is displayed as a slider.
- You can also set limits on the numbers accepted:
- 5.Input type-Date Pickers (data checkers)
- HTML5 has several new input types for picking dates and times:
- date-select day, month, year
- month-select month, year
- week-select week and year
- time-pick time (hours and minutes)
- datetime-select time, day, month, year (UTC time)
- datetime-local-select time, day, month, year (local time)
- 6.Input type-search
- The search type is used to search domains, such as site search or Google search.
- The search field appears as a regular text field. [2]
- The form tags used in most cases are input tags (<input>). The input type is defined by a type attribute. The most commonly used input types are:
- The "#" are new tags in HTML5.
label | description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<datalist> (#) | Specify a list of predefined input control options |
<keygen> (#) | Defined key pair generator fields for the form |
<output> (#) | Define a calculation result |