We help IT Professionals succeed at work.

color coding html select elements

Richard Korts
on
Is it possible to color code different elements in an HTML <select> list with different elements (<options>) colored differently?

I'm guessing it can be done with styles at the option level?

Thanks
Comment
Watch Question

Commented:
Yes, you can do this using <option style="color:red">option1</option>
Richard KortsBusiness Owner / Chief Developer

Author

Commented:
You both answered almost instantly, so to be fair I have to split the points.

Thanks!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.