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 are main tags for text?


Explain what an external style sheet (CSS document) is for in a HTML document and write a line of HTML code to import one


Explain what a pseudo class selector is


What is the difference between HTML and CSS?