1<!DOCTYPE html>
2<head>
3</head>
4<body>
5 <select name="food">
6 <!-- The following line makes a placeholder -->
7 <option value="" disabled selected hidden>select food</option>
8 <option value="apple">apple</option>
9 <option value="melon">melon</option>
10 </select>
11</body>
1// disabled hidden play as a role of placeholder, as select input dosn't have placeholder
2
3<select name="monthname" required>
4 <option value="" selected disabled hidden>Select Month</option>
5 <option value="Jan">January</option>
6 <option value="Feb">February</option>
7 <option value="Mar">March</option>
8 <option value="Apr">April</option>
9 <option value="May">May</option>
10 <option value="Jun">June</option>
11 <option value="Jul">July</option>
12 <option value="Aug">August</option>
13 <option value="Sep">September</option>
14 <option value="Oct">October</option>
15 <option value="Nov">November</option>
16 <option value="Dec">December</option>
17</select>
1 <html>
2 <head>
3 </head>
4 <body>
5 <select required
6 <!-- The following line is the placeholder -->
7 <option value="" disabled selected hidden>Choose Gender...</option>
8 <option>Male</option>
9 <option>Female</option>
10 </select>
11 <body>
12 </html>