Html 5 Form Multiple Attribute Tag

In the multiple attribute is used to can select multiple values for an input field. The multiple attributes will work also email and file input fields.

Syntax:

<input type="" multiple="multiple" />

Example Code



<!DOCTYPE HTML>
<form action="" method="get">
  <input type="email" name="email" multiple="multiple" />
  <input type="submit" value="Submit" />
</form>

Out Put :

In the above example put multiple attribute for the email input type.





Content