w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Mosaic icon 1.0 2.0      
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      

<input>

empty
CSS: in-line element
start tagrequired
end tagforbidden
Sandia Reference
Link to Site Map

This is a sub-tag to the form element

WebTV's implementation is different so if you are implementing forms for use on WebTV systems, make sure you study their documentation.

accept=
w3c icon + 2.0 3.0 3.2 4.0
"This attribute specifies a comma-separated list of MIME types that a server processing this form will handle correctly. User agents may use this information to filter out nonconformant files when prompting a user to select files to be sent to the server." (W3C HTML 4.0)
action=
WebTV 0.9 1.2      
WebTV defines this as part of <input>. However, take a look at the <form> page.
Use the action attribute to specify the action used when the viewer selects the control. This action overrides the action set in the <form> tag and also immediately sends the value for the control to the server without the values for the rest of the form.

The default value for a control is 0. Use the value attribute for the control to set a different value.

When both the action and submitform attributes are set for the control, the WebTV interface submits the entire form by means of this action.

Note that the action attribute can also be used to invoke client functions. However, client functions are not recommended for content developers. These functions are intended for use by WebTV Networks for developing basic WebTV functionality.

align=
deprecated
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1n 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
this is used when "type=image". "This specifies how the next line of text will be aligned with the image." (Microsoft)

Note: This attribute has been deprecated but it is still defined by HTML 4.0. One would assume that this is for backwards compatibility.

For examples of the align= attribute, see <img>

The HTML+ working draft specifies that this attribute is described for the convenience of "TYPE=IMAGEMAP" and controls only the vertical alignment of the image.

HTML 3.0

"This attribute only applies to fields with background images, i.e. SCRIBBLE, IMAGE, SUBMIT or RESET fields. It is intended to provide the same positional control as for the IMG element. The ALIGN attribute takes the values TOP or MIDDLE or BOTTOM, defining whether the top or middle or bottom of the field should be aligned with the baseline for the text line in which the INPUT element appears.

With ALIGN=LEFT, the field will float down and over to the current left margin, and subsequent text will wrap around the right hand side of the field. Likewise for ALIGN=RIGHT, the field aligns with the current right margin and, and text wraps around the left." (HTML 3.0)

"absbottom"
Netscape icon 1.1 2.0 3.0 4.0  
"absmiddle"
Netscape icon 1.1 2.0 3.0 4.0  
"baseline"
Netscape icon 1.1 2.0 3.0 4.0  
"bottom"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
"center"
w3c icon + 2.0 3.0 3.2 4.0
centers text between canvas margins.
"justify"
w3c icon + 2.0 3.0 3.2 4.0
forces text flush left and right.
"left"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
"middle"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
"right"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
"texttop"
Netscape icon 1.1 2.0 3.0 4.0  
"top"
default
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
allcaps=
WebTV 0.9 1.2      
"Sets the caps mode for the on-screen keyboard so that any text that the user types will default to capital letters." (WebTV 1.2 DTD)
alt=
w3c icon + 2.0 3.0 3.2 4.0
This is an alternative description for browsers that cannot display forms. It is the same function as <img alt="some description here">
autoactivate=
WebTV 0.9 1.2      
"Activates the text entry field automatically when the user selects it. When this attribute is specified for a text entry field or when the user has activated the field, the user can type in the text entry field and use the arrows to move the text cursor within the field." (WebTV 1.2 DTD)
autocaps
WebTV 0.9 1.2      
"Defines the first letter of each word that the user types with the on-screen keyboard as a capital letter." (WebTV 1.2 DTD)
autosubmit
WebTV 0.9 1.2      
"Submits the form when the user leaves the page, even if the user has not explicitly selected a submit button or other such control." (WebTV 1.2 DTD)
bgcolor=
WebTV 0.9 1.2      
"Defines the background color for the text entry field. Colors can be specified either as hexadecimal, red-green-blue color values or as predefined color names. The default value is #EAEAEA." (WebTV 1.2 DTD)
borderimage=
WebTV 0.9 1.2      
"Specifies the URL of the border image file (BIF) for the button. Possible values include "file://ROM/Borders/ButtonBorder2.bif" and "file://ROM/Borders/ButtonBorder3.bif" ButtonBorder2.bif is used for the Done button in Setup and displays as a flat button with rounded corners. ButtonBorder3.bif is used in the Reconnect panel and displays as a convex button with square corners." (WebTV 1.2 DTD)
checked=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"When the control type is "radio", this boolean attribute specifies that the radio button is on. This attribute must be ignored for other control types." (W3C HTML 4.0)

"this is for check boxes and radio buttons, indicates that they are selected" (Microsoft)

Take your pick and experiment.

"checked"
MSIE icon 1.0 2.0 3.0 4.0  
specified in the MSIE 3.0 DTD but no description of this argument is given. It may be an error. It is included here for accuracy.
"true"
MSIE icon 1.0 2.0 3.0 4.0  
confirms that the check box or radio button was checked.
"false"
MSIE icon 1.0 2.0 3.0 4.0  
confirms that the check box or radio button was not checked.
class=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
cursor=
WebTV 0.9 1.2      
"Defines the color for the cursor in the text entry field. Colors can be specified either as hexadecimal, red-green-blue color values or as predefined color names. The default value for the cursor is a dark blue (#3333AA) although many pages override this value with yellow when the text is drawn on a dark background." (WebTV 1.2 DTD)
dir=
w3c icon + 2.0 3.0 3.2 4.0
"ltr"
"rtl"
disabled
w3c icon + 2.0 3.0 3.2 4.0
"When set for a form control, this boolean attribute disables the control for user input." (W3C HTML 4.0)

"When present indicates that this field is temporarily disabled. Browsers should show this by "greying it" out in some manner." (HTML+)

error
w3c icon + 2.0 3.0 3.2 4.0
"When present, indicates that the field's initial value is in error in some way, e.g. because it is inconsistent with the values of other fields. Servers should include an explanatory error message with the form's text." (HTML+)
id=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
This is a WebTV attribute. They seem to have their own implementation philosophy for forms.
The id attribute is implemented as defined in HTML 3.2.
lang=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
list of language codes
list of country codes
max=
w3c icon + 2.0 3.0 3.2 4.0
maxlength=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"When the control type is "text" or "password", this attribute specifies the maximum number of characters that may be entered. This number may exceed the specified size, in which case the user agent should offer a scrolling mechanism. The default value for this attribute is an unlimited number." (W3C HTML 4.0)

"indicates the maximum number of characters that can be entered into text control" (Microsoft) The argument is always a number indicating the number of characters acceptable.

md=
w3c icon + 2.0 3.0 3.2 4.0
"Specifies a message digest or cryptographic checksum for the associated image specified by the SRC attribute. It is used when you want to be sure that the image is indeed the same one that the author intended, and hasn't been modified in any way. For instance, MD="md5:jV2OfH+nnXHU8bnkPAad/mSQlTDZ", which specifies an MD5 checksum encoded as a base64 character string. The MD attribute is generally allowed for all elements which support URI based links." (HTML 3.0)
min=
w3c icon + 2.0 3.0 3.2 4.0
name=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"This attribute assigns a name to the control. This name will be paired with the current value of the control if the element's value is submitted along with the form." (W3C HTML 4.0)

Every place that you want a reader to enter information or respond to a question has to be identified in some way. The most convenient is to attach a "handle" to the information. This attribute is merely a "handle", like the handle on a suitcase - it is merely a convenient way to grab onto the whole suitcase. Without the handle the suitcase would be difficult to carry.

noargs=
WebTV 0.9 1.2      
WebTV attribute:
Use the noargs attribute with the action attribute to prevent arguments from being submitted with the action for the control.

WebTV 1.2 DTD is somewhat more complete:

"Used in conjunction with the ACTION attribute, prevents arguments from being submitted with the action for the control.

Disables the image map cursor when the user selects the input image. The WebTV interface simply submits the form, using the center point of the input image.

The WebTV interface normally displays the image map cursor when the user selects an input image. The user must select the input image twice in order to invoke its action: once to display the image map cursor and a second time to select a particular area of the input image.

For large input images with multiple "hot" areas, this behavior is ideal.

For a small input image, such as a custom button image used in place of the standard button image provided by a browser, you can avoid the second selection by using the NOCURSOR attribute."

nocursor=
WebTV 0.9 1.2      
"Disables the image map cursor when the user selects the input image. The WebTV interface simply submits the form, using the center point of the input image.

The WebTV interface normally displays the image map cursor when the user selects an input image. The user must select the input image twice in order to invoke its action: once to display the image map cursor and a second time to select a particular area of the input image.

For large input images with multiple "hot" areas, this behavior is ideal.

For a small input image, such as a custom button image used in place of the standard button image provided by a browser, you can avoid the second selection by using the nocursor attribute." (WebTV 1.2 DTD)

nohighlight
WebTV 0.9 1.2      
A WebTV tag.
Use the nohighlight attribute to prevent the yellow Highlight rectangle from drawing when the viewer selects the control.

You can use the nohighlight attribute on text entry fields. Since the text entry field, defined by <input type="text>", draws a cursor to indicate that the viewer can type there, it's not necessary to also indicate the selected field with a yellow Highlight rectangle. The nohighlight attribute can be used to disable the yellow Highlight rectangle in this case.

You can also use the nohighlight attribute if there is only one area on a page that can be selected. In this case, make the selectable area obvious to the viewer with graphics, text, formatting, or sound, since the nohighlight attribute disables the Highlight rectangle.

nosubmit
WebTV 0.9 1.2      
"Prevents the form from being submitted when the user presses Return on the keyboard." (WebTV 1.2 DTD)
notab
WebTV 0.9 1.2      
A WebTV tag.
Use the nohighlight attribute to prevent the yellow Highlight rectangle from drawing when the viewer selects the control.

You can use the nohighlight attribute on text entry fields. Since the text entry field, defined by <input type="text>, draws a cursor to indicate that the viewer can type there, it's not necessary to also indicate the selected field with a yellow Highlight rectangle. The nohighlight attribute can be used to disable the yellow Highlight rectangle in this case.

You can also use the nohighlight attribute if there is only one area on a page that can be selected. In this case, make the selectable area obvious to the viewer with graphics, text, formatting, or sound, since the nohighlight attribute disables the Highlight rectangle.

numbers
WebTV 0.9 1.2      
"Use this attribute so that when the WebTV interface displays the on-screen keyboard, the "1" key is selected." (WebTV 1.2 DTD)
onblur=
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Defines JavaScript code to execute when the window loses focus." (WebTV 1.2 DTD with credit to Netscape [no version])
onchange=
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Defines JavaScript code to execute when the value is changed." (WebTV 1.2 DTD with credit to Netscape [no version])
onclick=
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Defines JavaScript code to execute when user makes a selection." (WebTV 1.2 DTD with credit to Netscape [no version])
onfocus=
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Defines JavaScript code to execute when the window acquires focus." (WebTV 1.2 DTD with credit to Netscape [no version])
onselect=
WebTV 0.9 1.2      
"Defines JavaScript code to execute when the window loses focus." (WebTV 1.2 DTD with credit to Netscape [no version])
readonly=
w3c icon + 2.0 3.0 3.2 4.0
This renders a form control as unalterable by a reader. However, it can be modified dynamically by a script.
size=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
"This attribute tells the user agent the initial width of the control. The width is given in pixels, except for control types "text" and "password" when it is the (integer) number of characters." (W3C HTML 4.0)

Specifies the size of the control (in characters. For TEXTAREA type controls, both height and width can be specified.

"size" a single entry indicating the number of characters allowed in the field.
"width,height" a two number entry specifying the width and height of the textarea, specified in characters.
src=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Used with TYPE="IMAGE." Specifies the address of the image to be used" (Microsoft)

"When the control type is "image", this attribute specifies the location of the image to be used to decorate the graphical submit button." (W3C HTML 4.0)

style=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
submitform
WebTV 0.9 1.2      
A WebTV attribute:
In version 1.1 of the WebTV HTML interface, use the submitform attribute to submit all form data when the viewer changes the value of a particular control in the form.

When the action attribute is set for a control, the value for the control is sent to the server immediately. If the submitform attribute is not set, only the value for the selected control is submitted. When both the action and submitform attributes are set for the control, the WebTV interface submits the values for the entire form using the action for the control.

tabindex=
w3c icon + 2.0 3.0 3.2 4.0
WebTV 0.9 1.2      
"This attribute specifies the position of the current element in the tabbing order for the current document. This value may be a positive or negative integer." (W3C HTML 4.0)
title=
w3c icon + 2.0 3.0 3.2 4.0
WebTV 0.9 1.2      
type=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Specifies what type of control to use. See Microsoft ie20.html, appendix B for more information." (Microsoft)

This is the attribute that tells the browser what type of input to create.

"audio"
w3c icon + 2.0 3.0 3.2 4.0
"This provides a way of entering spoken messages into a form. Browsers might show an icon which when clicked pops-up a set of tape controls that you can use to record and replay messages. The initial message can be set by specifying a URL with the SRC attribute. The VALUE attribute is ignored." (HTML+)

This one is very useful. Too bad it hasn't been revived, yet.

"button"
w3c icon + 2.0 3.0 3.2 4.0
WebTV 0.9 1.2      
"This is only used in JavaScript code in Netscape. You would associate an action with the click of a button.
It takes two possible values:
  1. onclick= – specifies an action to perform when someone clicks the button. This is a valid option for submit buttons as well.
  2. onsubmit= – This specifies the action to perform when someone clicks the submit button. You can confirm the user input before submitting so that they are absolutely sure." (webcom.com)
"checkbox"
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
<form>
<input type="checkbox" name="change" value="table" checked>Table Format
<input type="checkbox" name="change" value="colour">Colours
</form>
Table Format
Colours
"date"
w3c icon + 2.0 3.0 3.2 4.0
"Fields which can accept a recognized date format." (HTML+)
"file"
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
this is used to submit a file as part of the reader's response to a form.
<form>
<input type="file" name="change">
</form>

"float"
w3c icon + 2.0 3.0 3.2 4.0
"For fields which can accept floating point numbers." (HTML+)
"hidden"
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
this is used to submit certain fixed information not to be entered by the reader.
"image"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1n 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
this allows an image to be used in the form. Usually this is used on the "submit" and "reset" buttons.
"int"
w3c icon + 2.0 3.0 3.2 4.0
Who said HTML'ers aren't programmers. This one is specifically for entering integers. The size= attribute (above) could control the number of digits to be entered. I don't think this one got much past HTML+.
"password"
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
<form>
<input type="password" size="10" maxlength="5">
</form>
Please enter your password:
"radio"
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
<form>
<input type="radio" name="contact" value="yes">Yes
<input type="radio" name="contact" value="no">no
</form>
Yes no
"range"
w3c icon + 2.0 3.0 3.2 4.0
"This allows you to specify an integer range with the MIN and MAX attributes, e.g. MIN=1 MAX=100. Users can select any value in this range." (HTML+)
"reset"
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
<form>
<input type="text" name="test" size="20">
<input type="reset" value="reset">
</form>
Type in some text in the box and hit "reset"
"scribble"
w3c icon + 2.0 3.0 3.2 4.0
"A field upon which you can write with a pen or mouse. The size of the field in millimeters is given as SIZE=width,height. The units are absolute as they relate to the dimensions of the human hand, rather than pixels of varying resolution. The scribble may involve time and pressure data in addition to the basic ink data. You can use scribble for signatures or sketches. The field can be initialised by setting the SRC attribute to a URL which contains the ink. The VALUE attribute is ignored." (HTML+)
"submit"
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
this causes the form to be submitted to the server using the parameters of the form attributes.

<form>
<input type="submit"
name="send"
value="Send It">
</form>
In order to represent this button properly it was necessary to leave it active. If you push it, strange things may happen to your browser as it attempts to send a non-existant form to a non-existant address.
"text"
default
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
This is the default argument for this attribute.

Note: the name= attribute and its argument are required.
<form>
<input type="text" name="mail_address" size="20" maxlength="10">
</form>
Type in 20 characters.

"textarea"
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
this is stipulated by Microsoft IE. If you are not using IE this may not display properly. <form>
<input type="textarea" name="origin" size="40,5" maxlength="250">
</form>
"url"
w3c icon + 2.0 3.0 3.2 4.0
"For fields which expect document references as URLs or URNs." (HTML+)
useform=
WebTV 0.9 1.2      
"Specifies the name of the form to submit when the user selects this button. The default value is the name of the form that contains the button.

Note: You can use the USEFORM attribute to submit the name of a form elsewhere on the page. For example, a button in the sidebar can submit the name of a form in the content area of the page. (For more information, see the NAME and ID attributes of the

tag.)" (WebTV 1.2 DTD)
usemap=
w3c icon + 2.0 3.0 3.2 4.0
If the form is based on an image and the use of coordinates, this defines the name of the map to be used.
usestyle
WebTV 0.9 1.2      
"Displays text in the Submit button in the style currently in effect for the page." (WebTV 1.2 DTD)
value=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"For textual/numerical controls, specifies the default value of the control. For Boolean controls, specifies the default value of the control. For Boolean controls, specifies the value to be returned when the control is turned on." (Microsoft)

"This attribute specifies the initial value of the control. It is optional except when the control type is "radio"." (W3C HTML 4.0)

width=
WebTV 0.9 1.2      
WebTV attribute:
Use the width attribute to set the width of the control in pixels. By default, the width fits the text content of the input. If the control displays text, the WebTV interface truncates the text and follows it with an ellipsis if the text can't fit within the width.