Re:Native HTML elements with CSS superpowers
by izietto on Monday June 15, 2020 @09:36AM
(#23527148)
What are the advantages over using data attributes instead of classes in order to style HTML elements?
[ Parent
| on HN ]
Re:Native HTML elements with CSS superpowers
by wilsonrocks on Monday June 15, 2020 @11:18AM
(#23528176)
I think where you have several Boolean states an element could be in, it can be nicer that programatically constructing a string with the required classmates in.