DEV Community

Discussion on: Web Development Bad Habits to Kick

Collapse
lizlaffitte profile image
Liz Laffitte Author • Edited on

I don’t think so! I often create a btn class that gives links the padding, background color and box-shadow to look like a physical button. It would be using a div with an a tag where you SHOULD use a button element.

I found this article really interesting, and it touches on how screenreaders interact differently with links and buttons: css-tricks.com/use-button-element/

Collapse
chidioguejiofor profile image
Chidiebere Ogujeiofor

Nice. thanks a lot. I wanted to be sure I wasn't doing the wrong thing all along

Also I learnt a ton from the article about buttons.

Thread Thread
lizlaffitte profile image
Liz Laffitte Author

Of course! I am growing and learning right there with you.