An Interest In:
Web News this Week
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
May 27, 2020 02:45 pm GMT
Original Link: https://www.htmhell.dev/20-close-buttons/
The Many Bad (and Good!) Patterns for Close Buttons
Manuel Matuzovi details 10 bad HTML patterns for a close button. You know, stuff like this:
<a class="close" onclick="close()"</a
Why is that bad? There is no href
there, so it really isn’t a link (close buttons aren’t links). Not to mention the missing href makes this “placeholder link” unfocusable. Plus, that symbol will be read as “multiplication” or “times”, which is not helpful (an “x” isn’t either).
What do you use instead?
There are plenty of good patterns too. … Read article “The Many Bad (and Good!) Patterns for Close Buttons”
The post The Many Bad (and Good!) Patterns for Close Buttons appeared first on CSS-Tricks.
Original Link: https://www.htmhell.dev/20-close-buttons/
Share this article:
Tweet
View Full Article