Ashkan Ahmadi
banner
ashkanahmadi.bsky.social
Ashkan Ahmadi
@ashkanahmadi.bsky.social
Fullstack Developer • Accessibility Fan • Blogger • Mountain and Nature Lover • Hiker • Runner
You don’t since they are different. A <button> is supposed to encourage interaction (copy a value, open modal, close an alert, etc) whereas an <a> is supposed to take you to a section on page or another page. Visually they can look the same but you should always use the appropriate tag in your HTML
November 22, 2024 at 12:58 AM