New course! Every coder should learn Generative AI!
Try a free lesson+ 2
How to change the color of select tag?
7 Answers
+ 2
Tag { color: red } //this for font
Tag { background-color: red } // for background
+ 1
By using css
+ 1
Use "Background-color" to change the background color and use "color" to change the font color
0
select{
color:red;
}
0
I have updated the code above
You can use tag name , id or class
0
You can change with color: Black; Black is a example. In Css use for example a <p>
p {
Color: Black;
}
For id's use #p and .p for class.