DEV Community

Discussion on: How to make elements behave like links without wrapping them in anchor tags

Collapse
 
devloco profile image
devloco

Don’t forget:
cursor: pointer;

Collapse
 
joeattardi profile image
Joe Attardi

You wouldn't need that because the <a> tag covers the whole div, and <a> tags automatically get the pointer cursor.