HTML form elements

(*-*)浩
Release: 2019-09-11 16:04:07
Original
2679 people have browsed it

HTML form elements

element

The most important form element is the element.

Elements can change into multiple forms according to different type attributes.

Element Definition Drop-down list:

Example

<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
Copy after login

Lists usually display the first option as the selected option.

You can define predefined options by adding the selected attribute.

Example

<option value="fiat" selected>Fiat</option>
Copy after login