VOOZH about

URL: https://www.geeksforgeeks.org/html/html-select-required-attribute/

⇱ HTML <select> required Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <select> required Attribute

Last Updated : 26 May, 2026

The required attribute is used to make a <select> dropdown mandatory before form submission. It ensures that the user selects an option from the dropdown list.

  • Prevents form submission if no option is selected.
  • Commonly used in forms where selection is compulsory.
  • It is a boolean attribute, so its presence alone makes the dropdown required.

syntax: 

<select required> 

Example: Illustrates the use of required attribute in select element. 

Comment
Article Tags: