DEV Community

HTML All The Things Podcast

CSS Attribute Selectors & Custom Attributes

CSS attribute selectors are a lot more powerful than I thought! I wasn't aware that they could not only select elements based on the presence of an attribute, or the presence of an attribute with a specific value, but that they could also "filter" through that attribute value by placing specific parameters on them using just CSS. In this episode, Matt and Mike discuss these "advanced attribute selectors" and cap the episode off by discussing another powerful CSS feature - custom attributes, done the right way! 

Episode source