selectively selecting HTML elements with CSS3
By Tech Writer
•
•
1 min read
This sample code will select any input tags that do not have their type specified, any text field and any password field.
The background will be set to red to see the changes being applied.
input:not([type]), input[type="text"], input[type="password"]
{
background:red;
}