Technology News

Buttons vs. Links

There are thousands of articles out there about buttons and links on the web; the differences and how to use them properly. Hey, I don’t mind. I wrote my own as well¹.

It’s such a common mistake on the web that it’s always worth repeating:

  • Is the intention to send someone to another URL? It’s a link in the form of <a href="">.
  • Is it to trigger some on-page interactivity? It’s a button in the form of <button>.
  • Any devition from from those and you better smurfing know what you are doing.

Eric Eggert wrote a pretty good piece recently with a nice line about why it matters:

If you had a keyboard and your “e” key would only work 90% of the time, it would be infuriating. Reliability and trust in user interfaces is important to allow users to navigate content and application with ease. If you use the right elements, you support users.

Manuel Matuzović has a Button Cheat Sheet that is a lol-inducing ride about why literally everything other than a <button> isn’t as good as a button. Manuel links up Marcy Sutton’s epic The Links vs. Buttons Showdown (video), pitting the two against each other in a mock battle — “We’ll pit two HTML elements against each other in a crusade of better and worse, right and possible wrong. One element is triggered with the space bar, the other with the enter key. Who will win?” I don’t know whether to laugh or cry at how far we have to go to spread this information.

Car Talk: How 5G, Mobile, And Cloud Are Transforming The Automobile
Magento 2 Translation: How Internationalization Works

Related Articles

How to Fetch Data in Svelte

Exploring the Potential of the Metaverse: A New World Awaits
This tutorial explores how you can consume and render data from an API in your Svelte application. You can interact with APIs in Svelte in the onMount() lifecycle hook using…

Why SaaS Product Management Is Crucial

Why SaaS Product Management Is Crucial
Product management plays a major role in defining UI/UX, product usability, features, and vis-à-vis the success of a SaaS business. Project managers often lead the baton to strive and enhance…

Take These 7 Key Steps To Improve Your Business

Take These 7 Key Steps To Improve Your Business
Key Steps For Your Business Both in business and in life, you are either growing or declining. Business Growth, however, requires a serious focus on continuous improvements in systems, people,…

The First Amendment has a Facebook problem

the-first-amendment-has-a-facebook-problem
Editor’s note, May 5, 2021: On Wednesday, a Facebook oversight board ruled that the social media service could retain its ban on former President Donald Trump following the insurrection at…

Face Detection on the Web with Face-api.js

Exploring the Potential of the Metaverse: A New World Awaits
Web browsers get more powerful by the day. Websites and web applications are also increasing in complexity. Operations that required a supercomputer some decades ago now runs on a smartphone.…