Input Tags And Its Attributes

The most used form tag is the <input> tag. The type of input is specified with the type attribute. There are the various input elements. To use these input elements in form you will have to define the Input element in the “type” attribute in the <input> tag.
Attributes of the <input> tag
type type attribute defines the type of input element.
e.g. <input type=”text” or password or checkbox or radio button or Drop-down menu>
name name defines the name of the input element. To access the value of input elements better he provide names to the elements
e.g <input type=”checkbox” name=”firstname”>
value value attribute defines the default value of input element.
Scroll to Top