I recently wrote a post about when it’s appropriate to use CSS classes. In it, I made the case that HTML5 Data-* attributes can be used instead of CSS classes to identify elements on a page. In this post, I’ll describe exactly how to do this.
CSS classes can serve multiple purposes when building web pages, which sometimes leads to ambiguity. In fact, this ambiguity is often the cause of arguments over when it’s appropriate to use CSS classes.
Though support for modern standards is limited in IE8, it’s not impossible. Here’s how to add support for HTML5 elements and web fonts.