#20 HTMHell special: close buttons submitted on May 23, 2020 by submitted onby Manuel

This first HTMHell special inspects one of the most complicated and most controversial patterns in front-end development:

🔥 the close button. 🔥

In modals, ads, and other overlays you often find a button with a close symbol that allows users, or at least some of them, to close the overlay. This functionality is often limited to mouse users, because most implementations of close buttons suck.

After less than 2 hours of research, HTMHell presents a collection of 11 different bad practices.

skip code sample < div class = " close " > </ div >

→ Details and tips on how to fix the diabolic code of #20.