The rule of least power
up:: Mental Models MOC Adactio: Journal—Principle
Choose the least powerful language suitable for a given purpose.
Any particular technology should only do what only that particular technology can do.
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.