My point was that js would be vastly more complicated than these html/css "incantations".
Most front end engineers could do it in JS without ever having to look something up. But the CSS to do it is still obscure to most.
Most front end engineers could do it in JS without ever having to look something up. But the CSS to do it is still obscure to most.