Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

HTML | <select> required Attribute

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The HTML <select> required Attribute is a Boolean attribute which is used to specify that the user should be selected value before submitting the Form


<select required> 

Example: This Example illustrates the use of required attribute in select element. 


<!DOCTYPE html>
    <title>HTML | <select> required Attribute</title>
        h2 {
            color: green;
            font-style: italic;
        body {
            text-align: center;
    <h2>HTML select required attribute</h2>
    <form action="">
        <select required>
            <option value="">None</option>
            <option value="ds">Data Structure</option>
            <option value="algo">Algorithm</option>
            <option value="os">Operating System</option>
            <option value="cn">Computer Network</option>
        <input type="submit">



Supported Browsers: The browser supported by HTML select required Attribute are listed below:

  • Google Chrome
  • Edge 12 and above
  • Internet Explorer 10 and above
  • Firefox 4 and above
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Last Updated : 10 Aug, 2022
Like Article
Save Article
Similar Reads
Related Tutorials