{"id":297030,"date":"2020-02-14T08:24:51","date_gmt":"2020-02-14T15:24:51","guid":{"rendered":"https:\/\/css-tricks.com\/?p=297030"},"modified":"2022-02-22T06:54:11","modified_gmt":"2022-02-22T14:54:11","slug":"a-complete-guide-to-links-and-buttons","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/a-complete-guide-to-links-and-buttons\/","title":{"rendered":"A Complete Guide to Links and Buttons"},"content":{"rendered":"\n
\n

There is a lot to know about links and buttons in HTML. There is markup implementation and related attributes, styling best practices, things to avoid, and the even-more-nuanced cousins of the link: buttons and button-like inputs.<\/p>\n\n\n\n

Let’s take a look at the whole world of links and buttons, and all the considerations at the HTML, CSS, JavaScript, design, and accessibility layers that come with them. There are plenty of pitfalls and bad practices to avoid along the way. By covering it, we\u2019ll have a complete good UX implementation of both elements.<\/p>\n<\/div><\/div>\n\n\n\n\n\n\n\n

\n

Quick guidelines<\/strong> on when to use each:<\/p>\n\n\n\n