Skip to content
loading...

Is that a button?

twitter logo github logo ・1 min read  

I often see that developers and designers don’t use the button element. I think that’s one of the most important mistakes in frontend development. So I’d like to give the tip by which you can detect the button element.

If users click on some element and an interface has to react on it without changing page URL then this element is the button element.

And no matter how an element looks. How users interact with it, that's what's important.

For example, I found several examples of buttons that we have to markup using the button element and I attached it on my Instagram post.

Maybe have you other ways to detect a button? I'd like to read them in the comments.

twitter logo DISCUSS (1)
markdown guide
 

If you hover over it and your web browser doesn't show the URL (javascript:, http://, #, etc.), but still shows the finger cursor, it's a button.

Classic DEV Post from Jun 19 '19

How important are math skills for software development?

Stas Melnikov profile image
I create challenges that help to check CSS knowledge 👉 https://www.patreon.com/melnik909

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❤️