CSS classes are terribly named

CSS classes are terribly named

This isn't a long article, just a quick thought I just had. It's no secret that one can use <custom-element>s in HTML without defining them in JS and use them only for styling. One of the cool things about this is, ironically a restriction: Any element can only have one tag name, not several. A tag name isn't just a long list of different things that apply to an element, it's a singular statement on what it is. That leads to an obvious question though: Isn't this what classes should be?...

Original Source

Read the full article at Dev →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.