Eduaction Management 959 Lahore
Code With Jahangir
More on forms
FREE COURSES
FREE CERTIFICATE
More on forms
The input type which can be used to take user input are mentioned below:
sr no | type=" " | description |
1 | text | gives input field to user to enter one line text |
2 | password | gives input field to user to enter one line password |
3 | submit | defines submit button to submit inputs to host |
4 | reset | gives a button which erases all the inputs entered |
5 | radio | gives radio button on which only one option can be selected |
6 | checkbox | gives checkboxes which allows multiple selection of option |
7 | button | gives a button which can be pushed over and handle the event |
8 | file | gives facility to upload a file on form |
9 | image | gives button having image upon |
10 | color | defines a input field with specific color |
11 | date | gives a calendar to upload a date on form |
12 | datetime-local | gives a calendar to upload a date on form without time zone |
13 | gives input field to upload an email address | |
14 | month | gives input field to control over month |
15 | number | Gives input field to enter especially number |
16 | url | gives input field to enter the url address |
17 | week | gives input field to enter the week |
18 | Search | Defines a single line text field for entering a search string. |
19 | Tel | Defines an input field for entering the telephone number. |
20 | Range | gives the dragging range button to set the range |
Other than this there is <select> tag which gives the facility to provide the drop down list to the user to select any one item.
Here name attribute defines the name of control and value defines the value of the form control
Example of form controls:--
output:-
Eduaction Management 959 Lahore
Code With Jahangir
More on forms
FREE COURSES
FREE CERTIFICATE