interactive-rating-component-main using HTML, CSS & JAVASCRIPT
Design comparison
Community feedback
- Account deleted
Well done on completing the challenge
You should not <div> so much and use more semantic HTML. HTML landmarks are important for adding structure to your page and landmarks such as <header>, <main>, <nav> and <footer> aid navigation in assistive technologies such as screen readers and for keyboard accessibility. You should wrap your markup in <main> , if you decide to keep the attribution in future wrap it in a <footer> element.
Page must have a level one heading <h1> and the can be multiple <h1>'s on a page. You should wrap "How did we do " and "Thank you" in a <h1> each.
I also do not think it was necessary to inject the second card through javascript, you could have had both cards in your markup up file and have the thank you card hidden eg.
.hidden.thank-you { display: none; }
and remove the hidden class on submission.
I would suggest you read the mdn(mozilla developer network) form guides as this challenge would be better completed using a form with radio or check buttons and client side validation. if you do not know about mdn, it is a great free resource.
I hope this helps
Happy coding.
Marked as helpful0
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