A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-select-multiple-attribute/ below:

HTML | <select> multiple Attribute

HTML | <select> multiple Attribute

Last Updated : 28 Jul, 2022

The HTML <select> multiple Attribute is a Boolean Attribute. It specifies that the user is allowed to select more than one value that presents in <select> element. 

Syntax: 

 <select multiple> 

Example: 

html
<html>

<body>
    <center>
        <h1 style="color:green; font-style:italic;">
          Geeksforgeeks
      </h1>
        <h2 style="font-style:italic; color:green;">
          HTML select multiple Attribute
      </h2>
        <form action=" ">
            <select name="Bikes" multiple>
                <option value="HeroHonda">HeroHonda</option>
                <option value="Splender">Splender</option>
                <option value="Ninja">Ninja</option>
                <option value="Pulsav">Pulsav</option>
            </select>
            <input type="submit">
        </form>

        <p>Hold down the Ctrl (windows) / 
          Command (Mac) button to select multiple options.</p>
    </center>
</body>

</html>

Output:

  

Supported Browsers:



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4