Square brackets in CSS

It’s an attribute selector in CSS

E[foo="warning"] Matches any E element whose “foo” attribute value is exactly equal to “warning”.

more on http://www.w3.org/TR/CSS2/selector.html

Leave a Comment