The <input type=”radio”> defines the radio button, which allows selecting an option between a set of related options.
It lets a user select only one option at a time.
Example:
<form>
<p> Select one Technology </p>
<input type="radio" name="technology" value="html"> HTML <br>
The <input type=”file”> is used to select one or more files from user device storgae.
Once you choose the file and after submission, this file can be uploaded to the server.
The <input type=”date”> is used to generate an input field that allows a user to input a date in a given format.
The date can be entered by the text field or by the date picker interface.
The <input type=”datetime-local”> is used to generate an input field that allows a user to select the date as well as local time in the hour and minute with no time zone information.
The <input type=”email”> is used to create an input field that allows a user to enter the e-mail address.
The submitted e-mail address can be automatically validated after submission.
The multiple attribute allows the user to enter more than one email address.
The <input type=”number”> is used to create an input field that allows a user to enter the numeric values. You can also set the restrictions to enter a minimum and maximum values using min and max attributes.
The <input type=”range”> is used to control a number entered by user whose exact value is not important. You can set restrictions on which numbers are accepted with the min and max attributes. Its default range is 0 to 100. The input type “range” is displayed as a slider control.
The <input type=”tel”> is used to create an input field that allows entering the telephone number. It does not have a default validation like email, because the pattern of a telephone number can vary worldwide.
The <input type=”url”> is used to create input fields that should contain a URL address.
The URL field can be automatically validated after submission, depending on browser support.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok