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 ▸

What’s the difference between a block-level element and an inline element in html?


Simplify the brackets, (x+1)(x+2)


How can I centre-align an item horizontally within another element?


Explain what a pseudo class selector is