Enter your email id to get regular update free
Your Email

What are HTML Form Elements?

Different HTML form elements are discussed here.

The most important form element is the <input> element
The <input> element can be displayed in several ways, depending on the <type> type attribute.
<input name="name" type="text">

<select> Element
The <select> element defines a drop-down list.
<select name="cars">
<option value="volvo">Volvo</option>
<option value="audi">Audi</option>

The <option> elements defines an option that can be selected.
Visible Values 
Use the size attribute to specify the number of visible values.
<select name="cars" size="3">
<option value="volvo">Volvo</option>
<option value="audi">Audi</option>

Multiple Selections
Use the multiple attribute to allow the user to select more than one value:
<select name="cars" size="4" multiple>
<option value="volvo">Volvo</option>
<option value="audi">Audi</option>

<textarea> Element
<textarea name="message" rows="10" cols="30">
This is a text area.

<button> Element
It defines a clickable button.
<button type="button" onclick="alert('Hello World!')">Click </button>
Form Elements
Tech writer at newsandstory
Total 506 views