![]() |
| IE | FF | Op | Saf |
|---|---|---|---|
| Full | Full | Full | Full |
The input element defines a form control for the user to enter input such as a radio button or a text field.
| Attribute | Description |
| type | |
| name = cdata | Key in submitted form. |
| value = cdata | Default value of input. |
| checked | If radio button or check box is checked or not. |
| size = cdata | Suggested number of characters for text input. |
| maxlength = number | Maximum number of characters for text input. |
| src = uri | Source for image. |
| alt = cdata | Alternate text for image input |
| usemap = uri | Client-side image map. |
| ismap | Server-side image map. |
| align |
Alignment of image input. [ top | middle | bottom | left | right ] |
| disabled | Disables the input. |
| readonly | Prevents changes. |
| accept = content types | Media types for file upload. |
| acesskey = character | Shortcut key. |
| tabindex = number | Position in tabbing order. |
| onfocus = script | Script to run when element recieves focus. |
| onblur = script | Script to run when element lost focus. |
Comments