HTML input multiple attributes
Examples
Acceptable values multiple file upload field:
<form action="demo-form.php">
选择图片: <input type="file" name="img" multiple>
<input type="submit">
</form>
选择图片: <input type="file" name="img" multiple>
<input type="submit">
</form>
try it"
Browser Support
Internet Explorer 10, Firefox, Opera, Chrome and Safari support multiple attributes.
Note: 9 and earlier versions of Internet Explorer does not support multiple attribute <input> tag.
Definition and Usage
multiple attribute is a Boolean attribute.
multiple attribute specifies allows users to enter multiple values <input> elements.
Note: multiple attribute applies to the following input types: email, and file.
Differences between HTML 4.01 and HTML5
multiple attribute is new in HTML5 attributes.
Differences between HTML and XHTML
In XHTML, prohibit attribute minimization, multiple attributes must be defined as <input multiple = "multiple" />.
grammar
<input multiple>
HTML <input> tag