Input Tag in HTML
- The input tag specifies an input field where the user can enter data.
- Input filed is created using <input> tag.
- Input tags don't need any closing tags.
Types of Input Tag
i). Text: It is used to create a text input field.
ii). Color: It is used for input fields that contain color.
iii). DateTime: It specifies an input field that contains the date and time.
iv). DateTime Local: It specifies the date and time input with no time zone.
v). Email: It is used for the input field which contains e-mail address.
vi). File: It is used for the input field which takes a file as input from the user.
vii). Image: It is used to define an image as a submit button.
viii). Number: It is used to define an input field that contains a numeric value.
ix). Password: It is used to create an input field that contains input data as a password.
x). Phone: It defines an input field that contains a telephone number.
xi). Range: It is used to define a control for entering a numeric value. The default range is from 0 to 100.
xii). Radio: It is used to create radio button.
xiii). Time: It is used to create an input field which allows the user to select a time.
xiv). Reset: It is used to create a reset button.
xv). URL: It is used for input fields that contain a URL address.
xvi). Week: It is used to create an input field which allows the user to select a week and year.
xvii). Checkbox: It is used to create a checkbox.
xviii). Button: It is used to define a button.