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.
Here is a crazy prediction: In 5 years, most applications will be built using what I like to call the JHC triumvirate (JavaScript, HTML, CSS). I’ll give you a second to gather yourself. You ok? Good. Now, let’s talk about why this may be. Since the dawn of time, people wanted to code once, but have […]