Welcome Guest! (App Version 3.1)

websitnero logo name

HTML Forms

Overview

  • <form> tags help in creating HTML Forms that take user data from the end user and save them at backend in databases.
  • All Form Elements such as input, dropdowns, radio, checkbox, submit, textarea go all inside <form> tags.

Forms in HTML

Forms are integral part of any website which tends to collect any sort of data from its users. Whether it is Railway Reservation, Plane Reservation, Entrance Test, entering a form for a School or Collage - the data that you collect online is mostly through HTML Forms.

<form> tags are basically containers with various tools that help in collecting data from users via various types of input options like textbox, radio buttons, dropdowns, textarea, checkboxes, etc.

An example of from would be a user visiting registration page of a website and entering required details such as name, age, gender, city, country, email, contact number, etc. This data may be sent to the back-end and get saved in a database.

Example

<form>
  Name:<input type="text"><br/>
  Age: <input type="number"><br/>
  <button type="submit">Submit</button>
</form>

Output:

Name:
Age:
Further Reading

1. HTML forms

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.