Design comparison
SolutionDesign
Solution retrospective
Hello All, I'm Mishael by name. Building this project was cool, but I'm unsure if using a button to display the result was the right call. Can someone check my code, also let me know if I'm on the right track.
Community feedback
- @GioCuraPosted over 1 year ago
Hi! π Good job finishing the project. Yes, a
<button>
is not an appropriate element to display the result, since it is not a good practice of semantic html. That is why you are having an html validation error saying that you cannot have<h1>
under your<button>
. I think it's okay to use a<div>
instead.Hope this helps!
Marked as helpful0@Mishael-JoePosted over 1 year ago@GioCura Thanks, I'll make the needed correction.
0
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