Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

web development
community creator

Key components in HTML form

Buchiredddypalli Koushik

HTML Forms: A web form or HTML form on a web page that allows users to enter data that is then sent to a server for processing. Forms may resemble database forms because website users fill out the forms using:

  • Input fields
  • Select menus
  • Check-boxes
  • Radio buttons
  • Text-area
  • Submit button
  • Reset button

In this article, we are going to thoroughly discuss the key form elements.

  1. Input field: The<input> tag specifies an input field where the user can enter data. The <input> element is the most important form element – it can be displayed in several ways, depending on the type attribute.
  1. Select menus/Select drop-down: The <select> element is used to create a drop-down list – it is most often used in forms to collect user input. The <option> tags inside the <select> element define the available options in the drop-down list.
  1. Check-boxes: The check-box is a square box that is ticked (checked) when activated. Checkboxes let users select one or more options from a limited number of choices.
  1. Radio-buttons: The radio button is a form element that allows the user to select one option from a range of options. Radio elements are created with the HTML <input> tag. Radio buttons can be nested inside a <form> element or they can stand alone.
  1. Text-area: The <textarea>tag defines a multi-line text input control. A textarea can hold an unlimited number of characters, and the text renders in a fixed-width font. The size of the textarea is specified by the <cols> and <rows> attributes.
  1. Submit button: The submit button submits all form values to a form-handler. The form-handler is typically a server page with a script for processing input data.

  2. Reset button: The reset button resets all form values to their initial values.


web development
community creator


Buchiredddypalli Koushik

View all Courses

Keep Exploring