html tutorial - multiple Attribute in HTML - html5 - html code - html form



Multiple attribute in html

Learn html - html tutorial - Multiple attribute in html - html examples - html programs

  • The multiple attribute is a Boolean attribute.
  • The multiple attribute is used to specify that the user is allowed to enter / select more than one value.
  • Hence the Multiple attribute is new in HTML5 version.

Syntax for multiple Attribute in HTML:

<input type= “file” multiple>content here</audio>

Sample coding for multiple Attribute:

Tryit<!DOCTYPE html>
<html>
    <body>
        Select files: <input type="file" name="img" multiple>
        <input type="submit">
        <p>Try selecting one or more  when browsing for files.</p>
    </body>
</html>

Code Explanation for multiple Attribute:

multiple Attribute Code Explanation

  1. Multiple attribute is given to choose more than one files in the HTML document.

Output for multiple Attribute in HTML:

multiple Attribute Output

  1. The output shows the “choose files” which we can select the multiple files from the document.

Browser Support for multiple Attribute in HTML:

Yes Yes Yes Yes Yes

Related Searches to multiple Attribute in html