9951 explained code solutions for 126 technologies


cssMake a placeholder for select box


select option:first { color: gray; }ctrl + c
select option:first

select first option (assume it has the default placeholder text, like "select something...")

color: gray

color first option text with gray, so when selected, it differs from other options