type attribute | type property
Retrieves or initially sets the type of input control represented by the object.
One of the input control values in Possible Values.
Creates a button control.
Creates a check box for simple Boolean attributes or for attributes that can take multiple values at the same time. The input consists of a number of check box controls, each of which has the same name. Each selected check box generates a separate name/value pair in the submitted data, even if this results in duplicate names. The default value is
Creates a single-line validated email address entry control.
Creates a file upload object.
Creates a control hidden from the user, but the value of the value property is sent with the submitted form.
Creates an image control that can be clicked, causing the form to be immediately submitted. The coordinates of the selected point are measured in pixels from the upper-left corner of the image and are submitted with the form as two name/value pairs. The x-coordinate is submitted under the name of the control with
.xappended, and the y-coordinate is submitted under the name of the control with
valueproperty is ignored. The image is specified by the src property, exactly as for the img object
Creates a single-line numeric entry control.
Creates a control similar to the text control, except that text is not displayed as the user enters it.
Creates radio buttons used for mutually exclusive sets of values. Each radio button control in the group should be given the same name. Only the selected radio button in the group generates a name/value pair in the submitted data. Radio buttons require an explicit value property.
Creates a slider control for imprecise number input.
Creates a button that resets the form's controls to their specified initial values. You can specify the label to display on this button just as you can for the Submit button.
Creates a single-line text entry control that behaves essentially the same as "type="text"" that enables you to differentiate search fields from text fields through CSS styles.
Creates a button that submits the form. Use the value attribute to specify a label that is displayed on the button. The default label is application-specific. When the button is clicked, the associated control objects submit name/value pairs to the server.
Creates a single-line telephone entry control.
Creates a single-line URL entry control.
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 17.4
Only the type property is writeable.
- input type=button
- input type=checkbox
- input type=email
- input type=file
- input type=hidden
- input type=image
- input type=number
- input type=password
- input type=radio
- input type=range
- input type=reset
- input type=search
- input type=submit
- input type=tel
- input type=text
- input type=url