HTML Element Reference

"input" - html element

  • This element defines a form control for the user to enter input.
  • Starttag <input> is Required and endtag </input> is forbidden
  • The type of form control defined by INPUT is given by the TYPE attribute.
  • The default TYPE is text, which provides a single-line text input field.
  • Browsers that support the input - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "input" example:
<form name="myform" action="">
<input id="hiddencontrol" type="hidden" name="childMenuId" value="74" />
Page to search: <input type="text" name="page" value="%Java%" /><br>
Password:<input type="password" name="password" value="" /><br>
Checkbox:<input type="checkbox" name="checkbox1" checked="checked" /><br>
Image button:<input type="image" name="image1" value="get data"
                    src="images/buttonImage.png" /><br>
Radio 1 button:<input type="radio" name="radio" value="Radio1" /><br>
Radio 2 button:<input type="radio" name="radio"
                  checked="checked" value="Radio2"/><br>
File button:<input type="file" name="file1"  /><br>
Button:<input type="button" name="button1" value="My button"
           onclick="document.myform.submit();" /><br>
Submit button:<input type="submit" name="submit1" value="submit" /><br>
Reset button:<input type="reset" name="submit1" value="reset" /><br>

accept , accesskey , align (deprecated), alt , checked , class , dir , disabled , id , ismap , lang , maxlength , name , readonly , size , src , style , tabindex , title , type , usemap , value

Attribute "accept" value(s): content-type-list
  • Specifies a comma-separated list of content types that a server processing this form will handle correctly.
  • Content types are case-insensitive. Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "text/css", and "audio/basic".

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.