How to add a placeholder on a select

It is quite easy to add a placeholder on a select in HTML, you just need to add an option with the text you need as a placeholder. The only thing to look for is to empty the value, add the two properties selected and disabled.

<select>
    <option value="" disabled selected>Select your option</option>
    <option value="test">Test</option>
</select>

Hope I could help.

More cheatsheets

http status code image

Women in tech

TheTrendyBrand