VersionW3C//DTD HTML 3.2 Final//EN
ElementINPUT
Purposeform input datum
DescriptionThis element defines an input field (which can be a button, checkbox, imagemap, or text input field) used in a FORM element.
Start tagRequired <INPUT>
Attributes
NameTypeDefaultComment
align( top | middle | bottom | left | right )#IMPLIEDvertical or horizontal alignment
checked( checked )#IMPLIEDfor radio buttons and check boxes
maxlength NUMBER #IMPLIEDmax chars allowed in text fields
name CDATA #IMPLIEDrequired for all but submit and reset
size CDATA #IMPLIEDspecific to each type of field
src CDATA #IMPLIEDUniform Resource Locator; see RFC1808 and RFC1738; for fields with background images
type( TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT | RESET | FILE | HIDDEN | IMAGE )TEXTwhat kind of widget is needed
value CDATA #IMPLIEDrequired for radio and checkboxes
ContentEMPTY
End tagForbidden
Referenced in A ADDRESS APPLET B BIG BLOCKQUOTE BODY CAPTION CENTER CITE CODE DD DFN DIV DT EM FONT FORM H1 H2 H3 H4 H5 H6 I KBD LI P PRE SAMP SMALL STRIKE STRONG SUB SUP TD TH TT U VAR
Example
SourceAppearance
<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>

Your Name:

Customer Number:

Shirt Size? S M L XL

What would you like?

Your comments?

Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.