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>

Related HTML and CSS Mentoring answers

All answers ▸

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


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


What is the correct HTML to link a stylesheet?


What's wrong with the following HTML markup: <p style"font-size:10px;">Copyright <span>2015</span></p>?


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences