Horje

How to add HTML <input> multiple Attribute

A file upload field that accepts multiple values.

Definition and Usage

The multiple attribute is a boolean attribute.

When present, it specifies that the user is allowed to enter more than one value in the <input> element.

Note: The multiple attribute works with the following input types: email, and file.

Tip: For <input type="file">: To select multiple files, hold down the CTRL or SHIFT key while selecting.

Tip: For <input type="email">: Separate each email with a comma, like: [email protected], [email protected], [email protected] in the email field.


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Syntax

<input multiple>

index.html
Example: HTML
<input type="file" id="files" name="files" multiple>

Output should be:

How to add HTML <input> multiple Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin