Buttons are not links
Read OriginalThe article argues against using HTML button elements with onclick handlers for navigation. It advocates for using semantic anchor (<a>) tags instead, as they provide built-in accessibility, work without JavaScript, and enable deep linking. It also addresses common SPA developer concerns, showing how to intercept link clicks for client-side routing while maintaining semantic HTML benefits.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser