Input Elements

Input tags are used to receive data from user and interactive web pages. Mostly input tags used for forms to interact with people. We use tag but we specify the type of input with the help of type property.There is a lot of type values in html.

Type of input Tags

button:-

it creates a button with its value.

checkbox:-

It gives you a box , if you want to select that value then check on it.

Color:-

You can choose color from this.

email:-

It is an input field which gives you a space to enter email, it also checks if the email is correct or not.

file:-

it gives you a button to choose a file from your system.

number:-

It gives a field which only accepts numbers.

radio:-

It allows a single value to be selected at a time.the name must be the same in each radio tag.

range:-

It is used there, where we don’t need any specific value.

reset:-

It is a button , which sets the form to its default values.

tel:-

It gives you a control to enter a telephone number.

submit:-

It is a button which will submit the form.

url:-

It is a field to enter a url. It also has some validation to check the url.

text:-

It is a single line text field.Line breaks are automatically removed.