Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Earning

What are HTML Form Elements?

Different HTML form elements are discussed here.

Do you have similar website/ Product?
Show in this page just for $5 (for a month)
Create an Ad
0/60
0/180

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>

CONTINUE READING
Form Elements
HTML
Ayesha
Tech writer at newsandstory