Skip to main content

HTML Guide

Bad value X for attribute “multiple” on element “input”.

Invalid value used for the multiple attribute on an input element.

The multiple attribute is a boolean attribute for certain input types (e.g., email, file). Boolean attributes must appear without a value (or with the same name as value in legacy cases), and they only work on specific types. Valid usage: <input type="email" multiple> or <input type="file" multiple>. Invalid usage includes multiple="1", multiple="true", or using multiple on unsupported types like text or number. The email type allows comma-separated addresses when multiple is present; the file type allows selecting more than one file.

HTML Examples

Example that reproduces the error

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Invalid multiple</title>
</head>
<body>
<!-- Invalid: value on boolean attribute, and wrong type -->

  <input type="text" name="tags" multiple="1">
</body>
</html>

Corrected example

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Valid multiple</title>
</head>
<body>
<!-- Valid: boolean attribute without a value on supported types -->

  <input type="email" name="recipients" multiple placeholder="name@example.com, other@example.com">

  <input type="file" name="attachments" multiple>
</body>
</html>

Learn more:

Related W3C validator issues