A list of HTML input types

Text:

Name: <input type="text" name="textinput">

Password:

Password: <input type="password" name="pwd">

Radio:
Male
Female

Radio:
<input type="radio" name="gender" value="male">Male<br>
<input type="radio" name="gender" value="female">Female

Checkbox:
C++
Java
PHP
Javascript

Checkbox:
<input type="checkbox" name="planguage" value="cpp">C++<br>
<input type="checkbox" name="planguage" value="java">Java<br>
<input type="checkbox" name="planguage" value="php">PHP<br>
<input type="checkbox" name="plagnuage" value="javascript">Javascript<br>

Select menu:

Select menu:
<select name="nyc">
	<option value="bronx">Bronx</option>
	<option value="brooklyn">Brooklyn</option>
	<option value="manhattan">Manhattan</option>
	<option value="queens">Queens</option>
	<option value="statenisland">Staten Island</option>
</select>


Button:

<script>
function msg()
{
alert("Hello world!");
}
</script>
Button: <input type="button" value="Hello world!" onclick="msg()">

Color:

Color: <input type="color" name="favcolor">

Image:

Image: <input type="image" src="img.gif" alt="Submit" width="30" height="30">

File:

File:<input type="file" name="attach1" id="attach1">

Date:

Date:<input type="date" name="bday">

Time:

Time:<input type="time" name="usr_time">

Datetime:

Datetime:<input type="datetime-local" name="bdaytime">

Week:

Week:<input type="week" name="year_week">

Month:

Month:<input type="month" name="bdaymonth">

Number:

Number:<input type="number" name="quantity" min="1" max="10">

Range:

Range:<input type="range" name="points" min="1" max="10">

Email:

Email:<input type="email" name="usremail">

URL:

URL:<input type="url" name="webaddress">

Reset:

Reset:<input type="reset" value="Reset">

Submit:

Submit:<input type="submit" name="submit" value="Submit"> 

Search within Codexpedia

Custom Search

Search the entire web

Custom Search