Interview Question

Build a FAQ accordion

Start with semantic, accessible HTML and keep the structure simple.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

Build a FAQ accordion is a coding task that checks whether you can choose clear, meaningful HTML. • Plan the content before writing tags. • Use native elements, labels, headings, and useful link or button text. • Keep styling and behavior separate unless the question asks for them.

💡 Simple Example

<details><summary>What is HTML?</summary><p>HTML structures web pages.</p></details>

⚡ Quick Revision

Start with semantic, accessible HTML and keep the structure simple.