selectively selecting HTML elements with CSS3

 

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;
}

Leave a Reply