Home Html Use of Text Field
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Use of Text Field

Advertisement
By using form in HTML, users are allowed to enter or select different types of information. A form contains form elements checkbox, text field, radio button etc.) through which users can input their data.

Use of Text Field, Text box, Text Area, Checkbox,Dropdownlist and Radio Button in HTML

     

By using form in HTML, users are allowed to enter or select different types of information. A form contains form elements checkbox, text field, radio button etc.) through which users can input their data. A form is created using <form> tags. The most common form tag is <input> tag. Input tag contains type attribute which specifies different types of inputs.

 

<form>

<input>
<input>

</form>

Text Fields:

Text fields are used to allow user to input different types of texts,i.e., letters, numbers etc.

Example

Checkbox:

Checkboxes are used to allow the user to select one or more options of a limited number of choices.

Example

Radio button:

Radiobutton is used to allow the user to select one option out of a number of choices.

Example

Dropdown Box:

A dropdown box is type of list from where an user can select one option out of many given choices.

Example

Text Area:

A text area is an area where an user can write as many texts as he wishes.

Example

The Action attribute and the Submit button:

The Action attribute of form contains the name of a file where the contents of the form has to be sent when an user clicks on a submit button.

Example

Advertisements

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 3, 2008

Ask Questions?    Discuss: Use of Text Field   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com