Text is the default input type. Therefore, I have always thought that input[type='text'] would be affected by CSS declarations even if the type was not explicitly defined on the control. But I've recently realised that the styles are not applied to my default-type text inputs. How come this is the case? And how do I deal with this?
input[type='text'] {
background: red;
}
<input name='t1' type='text' /> /* Is Red */
<input name='t1' /> /* Is Not Red */