plea for everyone to use semantic html at the very least for links. when linking, use the anchor tags because by default it turns cursors into the hand thing that indicates it's clickable. also important safety wise, it allows users' browsers have a sneak peek of where the link is taking them by showing the hovered link's url in the corner, while also allowing users to open links in a new tab.
links are fundamental to the concept of webpages and so html was design to accomodate them. sites don't need javascript to translate a user's click into changing pages unless the changing of a page is intentionally being hidden. there are times when a button is better than an anchor link, but do know that these elements can induce unintended extra precaution in users that can make your site less accessible
the websites I see with buttons instead of links usually have their navigation elements styled as buttons. I guess they thought since they want their nav to be button-like, they figured they should use the button tag. I think it would be best if buttons were reserved for executing actions that truly need javascript. anchor links can just be styled to look like buttons
links are fundamental to the concept of webpages and so html was design to accomodate them. sites don't need javascript to translate a user's click into changing pages unless the changing of a page is intentionally being hidden. there are times when a button is better than an anchor link, but do know that these elements can induce unintended extra precaution in users that can make your site less accessible
Links are what make the web a web!
Why would anyone do it in a different way? That is so bizarre to me.
the websites I see with buttons instead of links usually have their navigation elements styled as buttons. I guess they thought since they want their nav to be button-like, they figured they should use the button tag. I think it would be best if buttons were reserved for executing actions that truly need javascript. anchor links can just be styled to look like buttons