Skip to main content

Practice ยท 1 of 3

Native FAQ Accordion

Build the FAQ accordion for a product page: at least three sibling <details> elements that all share the same name="faq" (opening one closes the others), each with a non-empty <summary> question and answer content after the summary. No JavaScript anywhere.

Difficulty: advanced

Back to lesson: Practice: Native Disclosure & Dialogs โ€” Practice