Make a dropdown list with red type and yellow background.

<select style="color: red; background-color: yellow">
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
</select>

PW

Related HTML and CSS Mentoring answers

All answers ▸

Describe the advantages and disadvantages of the three main ways of adding CSS to a website


How can I express x^2 - 7*x + 2 as (x - p)^2 + q ?


What is the difference between classes and IDs?


What is CSS used for?