<INPUT ...>
Usage Recommendation |
use it |
TYPE : what type of fieldNAME : name of this form fieldVALUE : initial or only value of this fieldSIZE : how wide the text field should beMAXLENGTH : maximum number of charactersCHECKED : check this checkbox or radio buttonBORDER : border around imageSRC : URL of imageALT : text to show if you don't show the pictureLOWSRC : a version of the picture that isn't such a big fileWIDTH : width of imageHEIGHT : height of imageALIGN : how text should flow around the pictureVSPACE : vertical distance between the picture and the text | |
HSPACE : horizontal distance between the picture and the textREADONLY : the value of this field cannot be changedDISABLED : don't let the user do anything with this fieldACCESSKEY
TABINDEX : tab orderLANGUAGE : scripting language to useonClick : when the user clicks hereonChange : when this field is changedonFocus : when this field gets the focusonBlur : when this field loses the focusonKeyPress : script to run when a key is pressedonKeyUp : script for when a key goes up while the field has the focusonKeyDown : script for when a key goes down while the field has the focusAUTOCOMPLETE : If the browser should use autocompletion for the field |
<INPUT ...>
creates the data entry fields on an HTML form. (Well, it creates most types of fields, <TEXTAREA ...>
and <SELECT ...>
also create some, as does the new <BUTTON ...>
tag.) The TYPE
attribute establishes what type of field the input is creating. The other <INPUT ...>
attributes affect different types of inputs different ways (or not at all). So let's jump straight into the TYPE
attribute and look at the different types of input fields.