World Languages, asked by priyangparekh, 8 months ago

write html program with heading mycar.com ,use proper form object to accept name , address use drop down list with multiple selection​

Answers

Answered by syedtahir20
8

<!DOCTYPE html>

<html>

<body>

<h2>Pre-selected Option</h2>

<p>You can preselect an option with the selected attribute:</p>

<form action="/action_page.php">

 <label for="cars">Choose a car:</label>

 <select id="cars" name="cars">

   <option value="volvo">Volvo</option>

   <option value="saab">Saab</option>

   <option value="fiat" selected>Fiat</option>

   <option value="audi">Audi</option>

 </select>

 <input type="submit">

</form>

</body>

</html>

The dropdown list in HTML is an important element for form building purposes or for showing the selection list from which the user can select one or multiple values. This kind of selection list in HTML is known as the Dropdown list. It is created using <select> tag with <option> value. It allows the user to choose any option as per their choice. It is always a good practice to use the drop-down list when you know the option value so that one can set any value as a default attribute, and others will be as option values.

Similar questions