Input type text color background
The example above applies to all elements. If you only want to style a specific input type, you can use attribute selectors: input[typetext will only select text fields; input[typepassword will only select password fields; input[typenumber will only select number fields; etc. .
The best solution is the attribute selector in CSS (input[type text ) as the others suggested. But if you have to support IE6, you cannot use it (). Well, only if you have to and also are willing to support it. elements of type color provide a user interface element that lets a user specify a color, either by using a visual color picker interface or by entering the color into a textinput type text color background HTML Forms: Using CSS (Cascading Style Sheets) Style Tags to Add a Color Background to Input Boxes. The INPUT tag is used to create input fields within a web page form. You can change the font, input text color, input text size and the background color of your INPUT box by using the STYLE attribute. Click inside this text box and type to see an example of the text color.