How to change the default highlight color of drop down in HTML from blue to some other color for <select><option> tags, using some CSS properties or from Javascript?
The requirement is I have to use the <select> <option> tags only. I tried the code below, but it didn't work for me:
<html>
    <head>
        <title>Dropdown Colour</title>
        <style type="text/css">
            option:hover {
                background:#C6C4BD;
            }
        </style>    
    </head>
    <body>
        <select>
            <option>Shell</option>
            <option>Cabbage</option>
            <option>Beans</option>
            <option>Cheese</option>
            <option>Clock</option>
            <option>Monkey</option>
        </select>
    </body>
</html>
 
     
     
     
    