Form elements are various types of input elements such as text fields checkboxes radio buttons submit buttons labels and so on.
Example of forms in html. Class One Class Two Class Three. It defines a caption for a element. Try it Yourself.
This example uses raw HTML no CSS has been applied. You get a nice vector character on one side and a simple form on the other side. It defines an input control.
It defines a label for an input element. Input namename typetext idname Here type is a text that means it takes input in the form of text. A free-form text field nominally free of line breaks.
Note that the default width of a text input field is 20 characters. Submit a form using the get method. The following section describes different types of controls that you can use in your form.
The legend will be displayed a part of the fieldset border giving website visitors a clue about the purpose of a form. It groups the related element in a form. The elements used in an HTML form are check box input box radio buttons submit buttons etc.
A free form of button initiates form submission. It defines a drop-down list. It defines a multi-line input control.