Understanding CSS Attribute Selectors

CSS has the ability to target HTML elements based on any one of their attributes. You probably already know about classes and IDs. But did you know you can select an element based on the rel attribute as well? That is known as an attribute selector. There is a lot more to attribute selectors so let’s look closer at all the different options and try to cover some “real world” scenarios on when they might be useful…

VN:F [1.9.22_1171]
Rating: -1 (from 1 vote)

Leave a Reply

Your email address will not be published. Required fields are marked *