FAQ Accordion section using FlexBox, CSS animations & vanilla JS
Design comparison
Solution retrospective
Any feedback would be appreciated!
Community feedback
- @dewslysePosted about 3 years ago
Hello Tomiwa!. Nice job on your submission. Everything works as it should. Well done 👏. You may have forgotten to wrap your document in a
main
tag. Happy coding!0@tomiwaorimoloyePosted about 3 years ago@dewslyse Thanks for the feedback. I thought about using the
<main>
tag instead of a<section>
tag but I felt I should use<section>
because this particular design isn't a full webpage but rather a subsection.🤷♂️1@dewslysePosted about 3 years ago@tomiwaorimoloye since your don't have any top-level section, it's perfectly acceptable to use the
main
for this design. Including a main introduces a sectioning element within your document thereby making it more accessible. Also, remember to includeh
s within your sections.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