HTML input Tag multiple Attribute Tutorial

In this section, we will learn what the multiple attribute is and how to use it.

What is multiple Attribute in HTML <input> Tag?

The multiple attribute is used in an <input> element of type file and email.

When applied on an <input> of type file:

It means users can use this selector file to add more than one file into the target form.

When applied on an <input> of type email:

It means users can add more than one email address to this input field. Each email is separated via a comma.

HTML multiple Attribute in <input> Tag Syntax:

<input type = “email | file” multiple>

HTML multiple Attribute in <input> Tag Values:

The multiple attribute is a Boolean attribute and that means it doesn’t take any value.

Example: using multiple attribute in HTML <input> tag

See the Pen using multiple attribute in HTML <input> tag by Omid Dehghan (@odehghan) on CodePen.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies