Semantic HTML5 markup, CSS custom properties, Flexbox, JavaScript

Solution retrospective
I had some issues with the background shadows in the desktop design
How i can i achieve the background shadow design with less code.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @romila2003
Hi Nneoma,
Congratulations 🎉 for completing this challenge, the FAQ component looks great and is responsive. Also, it is great that you used the correct semantic for the main content and took a mobile-first approach since this is best practice. There are some issues/suggestions I want to address:
- You should also wrap the footer within the
footer
tag e.g.<footer class="attribution2></footer>
- I would not recommend using the
section
tag for the image, instead you should use thepicture
tag as this is semantically correct. - Since you used the
article
tag to wrap the Q and A, you need to use at least 1 heading (any betweenh2
toh6
). In your case, you can use the header for the question and thep
tag for the answer. - Regarding your question with the background, you just have to remove the colors that you repeated like this:
body { background: linear-gradient(hsl(273, 75%, 66% , hsl(240, 73%, 65%) ); }
Overall, great work and wish you the best for your future projects so keep coding 👍.
Marked as helpful - You should also wrap the footer within the
Join 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