| Version | //IETF//DTD HTML 2.0 Strict//EN
|
|---|
| Element | INPUT |
|---|
| Purpose | form input datum |
|---|
| Description | This element defines an input field (which can be a button, checkbox, imagemap, or text input field) used in a FORM element.
|
|---|
| Start tag | Required <INPUT>
|
|---|
| Attributes | | Name | Type | Default | Comment |
|---|
| ALIGN | ( top | middle | bottom ) | #IMPLIED | image alignment | | CHECKED | ( CHECKED ) | #IMPLIED | initial state is on | | MAXLENGTH | NUMBER | #IMPLIED | data length maximum | | NAME | CDATA | #IMPLIED | name of form datum | | SDAPREF | CDATA | #FIXED "Input: " | generated text prefix; in support of transformation to the International Committee for Accessible Document Design DTD for usable access to structured information by print-impaired individuals | | SIZE | CDATA | #IMPLIED | field size hint | | SRC | CDATA | #IMPLIED | address of image | | TYPE | ( TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT | RESET | IMAGE | HIDDEN ) | TEXT | type of input interaction | | VALUE | CDATA | #IMPLIED | default/initial/selected value
|
|
|---|
| Content | EMPTY
|
|---|
| End tag | Forbidden
|
|---|
| Referenced in | FORM SELECT TEXTAREA
|
|---|
| Example | | Source | Appearance |
|---|
<FORM Method="POST"
Action= "http://www.december.com/cgi-bin/formmail.secure.cgi">
<INPUT Type="hidden" Name="recipient" Value="nobody@december.com">
<p>Your Name: <INPUT Type="text" size="15" Name="user-name">
<P>Customer Number: <INPUT Type="number" size="10" Name= "customer-number">
<P>Shirt Size?
<INPUT Type="radio" Name="shirt-size" Value="S">S
<INPUT Type="radio" Name="shirt-size" Value="M">M
<INPUT Type="radio" Name="shirt-size" Value="L">L
<INPUT Type="radio" Name="shirt-size" Value="XL">XL
<P>What would you like?
<P><SELECT Name="would-like" size="2" multiple>
<OPTION>Order the product</OPTION>
<OPTION>Ask a question</OPTION>
<OPTION>Request a catalog</OPTION>
</SELECT>
<P>Your comments?<BR>
<TEXTAREA Name="comments" rows="4" cols="20"></TEXTAREA>
<P><INPUT Type="submit" Value="Send">
<INPUT Type="reset" Value="Cancel">
</FORM>
|
|
|
|---|