TLDR Web Dev · OPINIONS & ADVICE
BEHAVIOR BELONGS IN THE HTML
Summary from the TLDR Web Dev newsletter
This article proposes the idea of using custom attributes, such as "message," to extend the behavior of HTML elements like buttons. By adding custom attributes to HTML elements, you can define their behavior and functionality directly in the HTML markup, making the code more readable and maintainable.