Design comparison
Solution retrospective
Feedback welcome.
What are the best practices?
thanks,
Community feedback
- @MelvinAguilarPosted about 1 year ago
Hello there ๐. Good job on completing the challenge !
I have only one suggestion about your code that might interest you.
-
The purpose of an
<a>
element (anchor) is to create hyperlinks, while a<button>
is used for form submissions or interactions. Mixing them in this way can lead to confusion in terms of the intended behavior and accessibility issues for users with disabilities.<a href="#"><button class="btn">Sign Up</button></a>
A better way to achieve the desired result would be to use the anchor tag as a link and style it to look like a button.
I hope you find it useful! ๐
Happy coding!
Marked as helpful1 -
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord