How to call 'name = "text" ' in CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to call 'name = "text" ' in CSS?

if you have: <input name="txtInput" type="text"/> how do you call that input in CSS without using: tag -> [tag name]{ }, id -> #[id]{ } or class -> .[class]{ }

4th Dec 2016, 7:56 PM
Sjoerd Flameling
Sjoerd Flameling - avatar
2 Answers
+ 1
just call input[type="text"]{ background-color:red}
15th Dec 2016, 7:54 PM
imran ali
imran ali - avatar
+ 2
thanks!
15th Dec 2016, 9:55 PM
Sjoerd Flameling
Sjoerd Flameling - avatar