HTML and CSS Reference
In-Depth Information
Name
Simple Attribute Selector
Pattern:
element1[attr]
Description:
This allows authors to select any element based on the presence of an attribute, regardless of
the attribute's value.
Examples:
a[rel] {border-bottom: 3px double gray;}
p[class] {border: 1px dotted silver;}
Search WWH ::




Custom Search