The HTML <input> multiple Attribute is a Boolean Attribute. It specifies that the user is allowed to select more than one value that presents in an element. The multiple attributes work with many input fields such as email, file, etc.
Syntax:
<input multiple>
Example:
html
<!DOCTYPE html>
< html >
< body >
< center >
< h1 style="color:green;font-style:italic;">
GeeksForGeeks
</ h1 >
< h2 style="color:green;font-style:italic;">
HTML input multiple Attribute
</ h2 >
< form action=" ">
Select images:
< input type="file" name="img" multiple>
< input type="submit">
</ form >
</ center >
</ body >
</ html >
|
Output:
Supported Browsers:
- Google Chrome 2.0
- Edge 12.0
- Firefox 3.6
- Internet Explorer 10.0
- Opera 12.1
- Apple Safari 4.0
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
12 Aug, 2022
Like Article
Save Article