HTML Forms Lesson 2

Cards (15)

  • HTML <input> element
    Fundamental form element used to create form fields and take input from the user. Different input fields can be used to gather different information from the user.
  • The <textarea> tag in HTML is used to insert multiple-line text in a form. The size of <textarea> can be specify either using "rows" or "cols" attribute or by CSS.
  • The <select> tag in HTML is used to display a dropdown menu with one or more options. It allows users to select an option from a predefined set of values.
  • The <option> tag specifies an item in a select box (dropdown).
  • The <label> tag associates a label with a specific form field. When clicked on, it highlights the corresponding form field.
  • The <fieldset> tag creates a grouping of related elements on a web page.
  • The <fieldset> tag groups related elements together into a single unit. This helps organize forms and make them easier to use.
  • The <legend> tag provides a caption that describes the contents of a fieldset element.
  • The <button> tag creates clickable buttons within web pages. Buttons are often used as part of a form to submit data when clicked.
  • The <input type="submit"> button submits the data entered into the form fields to the server.
  • The radio button is used to select one option from multiple options. It is used for the selection of gender, quiz questions, etc.
  • The checkbox allows users to select more than one option at once. It can be used for selecting preferences or agreeing with terms and conditions.
  • The textarea tag is used to create a multi-line input box where users can enter longer pieces of information such as comments, messages, or descriptions.
  • The password attribute is used to hide user's password characters while typing it.
  • The <form> tag defines a complete form for user data entry.