'input' Syntax and Note : input « HTML Tag Reference « HTML CSS Reference






'input' Syntax and Note

Note:

This element gathers information and send it to a server.

All <input> elements must be placed within the <form> element.

The <input> element's type attribute is its most important attribute 

The <input> element's type attribute determines control type

Button               Creates a button on the page.
--------------------------------------------------------------------------------------
Checkbox             Creates a checkbox.
--------------------------------------------------------------------------------------
File                 Creates a text box with a file browse button. 
                     The text box allows a user to select a file to upload to the 
                     server for processing.
--------------------------------------------------------------------------------------
Hidden               Stores information that is not visible on the web page. 
                     However, this information can be viewed in the source HTML code.
--------------------------------------------------------------------------------------
Image                An image that will submit the contents of its form to 
                     the server when it is clicked.
--------------------------------------------------------------------------------------
Password             A text box that displays an asterisk 
                     (or other placeholder character) in place of each character.
--------------------------------------------------------------------------------------
Radio                A radio button on the page. 
                     Each radio button must 
                     have the same value for its name attribute.
--------------------------------------------------------------------------------------
Reset                A button on the page. This button will reset the original 
                     values of the form.
--------------------------------------------------------------------------------------
Submit               A button on the page. This button will submit the contents 
                     of the form to the server for processing.
--------------------------------------------------------------------------------------
Text                 A text box.
    
Syntax:
    
<input attributes events>
    

      
      








Related examples in the same category

1.'input' Example