Role of form tag in HTML Role of form tag in HTML

In the previous section you learnt about content tags in HTML which are used to add content to your webpage like paragraphs, lists, images and links. Using the content tags you can only display the content to a user, the user cannot interact with this content by providing some input. In this section you will start learning about form tags which are used to get user input into your webpage. For example, if you want to display a form to the user where he or she will have to enter personal details then you will have to make use of the form tags. The data you collect using form tags is of not much use to HTML directly. You need some programming langauge to use this data and do some processing. You can either write code using Javascript which can use the data entered by the user and do the processing on the client side, or you can pass this data to the server side where server side languages like PHP, Asp.net etc. can use this data.

HTML provides you with the following type of input tags

  1. Form tag – Used to mark the starting and end of the form in a webpage.
  2. Text box – To get string input from the user
  3. Radio buttons – To help user make one selection out of many
  4. Checkboxes – To help user make multiple selection
  5. Dropdown – To help user select one item out of many
  6. Listbox – To help user select single or multiple items
  7. File selection – To help user select a file from his / her computer

If you wish to create dynamic websites using server side languages like PHP, asp.net etc. then it is extremely important for you to learn and master the HTML form tags. It is the input tags in HTML using which you can display the input fields to the user where he / she can enter and send the data from the browser to the server so that it can be processed. In this regard the value of input tags becomes extremely high and you should pay proper attention to these tags and learn how they are used in a webpage.

Need Learning Guidence?
Join our Study Groups and get step by step guidence.
Learn HTML and CSS
The goal of creating this study group is to help students who are beginners to HTML and CSS program
7
Members
1
Questions Asked
0
Tasks Added
Learn Website Development
This goal of this study group is to help students learn the basics of website development using HTM
1
Members
0
Questions Asked
0
Tasks Added
Website Development Interview Preparation
This goal of this study group is to help students prepare for their website development interviews.
1
Members
0
Questions Asked
0
Tasks Added
Web Wars 1.0 - Build Your Digital CV
The goal of this study group is to manage all the communication for the 'Web Wars 1.0 - Build Your
110
Members
0
Questions Asked
0
Tasks Added

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp