Enter your email id to get regular update free
Login
Your Email
Pasword

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>
</select>

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>
</select>

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>
</select>

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

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