Easy Tutorial
❮ Att Iframe Align Canvas Strokerect ❯

HTML <select> required Attribute

HTML <select> Tag

Example

An HTML form with a required dropdown list:


Browser Support

Almost all major browsers do not support the required attribute.


Definition and Usage

The required attribute is a boolean attribute.

The required attribute specifies that the user must select a value before submitting the form.


Differences Between HTML 4.01 and HTML5

The required attribute is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the required attribute must be defined as <select required="required" />.


Syntax


❮ Att Iframe Align Canvas Strokerect ❯