Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

html
css
communitycreator

What is the HTML multiple attribute?

Behzad Ahmad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The multiple attribute in HTMLHypertext Markup Language is used to allow a user to select multiple options from a list of available options. It is a Boolean attribute.

The multiple attribute is used with the <input> and <select> elements.

Syntax


<input/select multiple>

Code

The basic HTML code to demonstrate the use of the multiple attribute is as follows:

In this example, we can see that we have made a list with several options and the user is able to select multiple options from the list.

RELATED TAGS

html
css
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring