Progressive enhancement and rule of least power
Posted on
Derek Featherstone stated:
"In the web front-end stack — HTML, CSS, JS, and ARIA — if you can solve a problem with a simpler solution lower in the stack, you should. It’s less fragile, more foolproof, and just works."
Source: Simply accessible (Data attributes & progressive enhancement article)