Hacker News new | ask | show | jobs
by timw4mail 1390 days ago
So...the problem with css classes is that they are old? I'm not sure I quite understand the why.

Data-attributes on html elements are only for JS behavior in my usage, and CSS classes are for styling.

1 comments

No, it's because they don't take parameters. Parameters are supported in the tag itself however, might as well use them.