An HTML form with a required drop-down list:
The required attribute is a boolean attribute.
When present, it specifies the user is required to select a value before submitting the form.
Attribute | |||||
---|---|---|---|---|---|
required | Not supported | Not supported | Not supported | Not supported | Not supported |
The required attribute is new in HTML5.
In XHTML, attribute minimization is forbidden, and the required attribute must be defined as <select required="required" />.