Select elements by attribute in CSS
If you mean using an attribute selector, sure, why not: [data-role=”page”] { /* Styles */ } There are a variety of attribute selectors you can use for various scenarios which are all covered in the document I link to. Note that, despite custom data attributes being a “new HTML5 feature”, browsers typically don’t have any … Read more