name some HTML controls that are created using the input element
Answers
hey mate!
The <input> Element
<input name="firstname" type="text">
The <select> Element
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
The most important form element is the <input> element.
The <input> element can be displayed in several ways, depending on the type attribute.
ex. <input name="firstname" type="text">
The <select> Element
The <select> element defines a drop-down list:
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
The <option> elements defines an option that can be selected.
By default, the first item in the drop-down list is selected.
To define a pre-selected option, add the selected attribute to the option:
<option value="fiat" selected>Fiat</option>