HTML APIs: What They Are And How To Design A Good One
<div data-open-modal="#modal"></div> might tell a library that this element is in charge of opening a modal. There is no configuration or initting other than loading the library itself.
By giving folks an HTML API we can avoid potential headache.
Lea’s made a collection of libraries that have HTML APIs.
HTML APIs: What They Are And How To Design A Good One is a post from CSS-Tricks