HTML Input Types

HTML Input Types Element is used to display the text boxes on a form.These fields are used to provide input form the users.

HTML Input Types Examples :- 

<HTML>

<HEAD><TITLE></TITLE></HEAD>

<BODY>

<FORM>

Enter your name : <input type=”text”>

</FORM>

</BODY>

</HTML>

Result of HTML Input Types :-

html input tag

 

In HTML Input Types Element , you can add the following fields in a form :-

  • Text field
  • Password field
  • Hidden field
  • Checkbox field
  • Radio button field
  • Submit button field
  • Reset button field

 

Example of HTML Input Types :-

<HTML>

<HEAD><TITLE>Use of Input field</TITLE></HEAD>

<BODY bgcolor=”#aaafff”>

<FORM>

Enter only 2 digit number : <input type=”text” name=”name1″ size=”2″ maxlength=”2″>

</FORM>

</BODY>

</HTML>

Result of HTML Input Types:-

Html inptut field with maxlength

 




Follow Us

Contact Us

tutorialworldin@yahoo.com

Back to Top