HTML — HTML Input Types
The <input> tag has many type attributes to create different input fields:
text: Single-line textemail: Validates email formatnumber: Accepts only numberspassword: Hides typed textcheckbox,radio: Optionsfile: Upload files
<form>
<input type=\"text\" placeholder=\"Your name\" /><br />
<input type=\"email\" placeholder=\"Your email\" /><br />
<input type=\"number\" placeholder=\"Your age\" /><br />
<input type=\"password\" placeholder=\"Password\" /><br />
<input type=\"checkbox\" /> I agree<br />
<input type=\"file\" /><br />
</form>