Skip to navigation

HTML Tag: input

A form element that can be represented as a text box, password text box, check box, radio button, submit button, reset button, hidden input field, image (which acts as a submit button), file selection box or general button.

Required Attributes

Optional Attributes


<form action="somescript.php" />
	<p>Do you like pie?</p>
	<div>yes <input type="radio" name="pie" value="yes" checked="checked" /></div>
	<div>no <input type="radio" name="pie" value="no" /></div>
	<div>Your name: <input type="text" name="name" /></div>
	<div><input type="image" name="submitimage" src="someimage.gif" /></div>