HTML Forms

in #htmlform7 years ago

images (4).png
source

HTML Forms
HTML Form Example First name: Last name:
The Element The HTML  element defines a form that is used to collect user input:
.
form elements
.
An HTML form contains form elements. Form elements are different types of input elements, like text fields, checkboxes, radio buttons, submit buttons, and more.

Text Input  defines a one-line input field for text input: Example


  First name:

  <input type="text"name="firstname">

  Last name:

  <input type="text"name="lastname">

The Element The  element is the most important form element. The  element can be displayed in several ways, depending on the type attribute. Here are some examples: TypeDescriptionDefines a one-line text input fieldDefines a radio button (for selecting one of many choices)Defines a submit button (for submitting the form) You will learn a lot more about input types later in this tutorial.

Sort:  

This post has received a 0.92 % upvote from @drotto thanks to: @rabiul21.