UIDex

What is the difference?

Accordion vs Dropdown / Select

The difference is where the revealed content goes. An accordion opens inside the page flow, pushing everything below it down, and stays open until you close it. A dropdown floats above the page in its own layer and closes the moment you choose, or click outside.

Ask yourself one question

Should the content stay visible while the user reads the rest of the page?

التبويبات إطار ثابت الارتفاع؛ القسم يدفع ما تحته.

يعطيك السلوك والوصولية بلا JavaScript، لكن تحريكه متعب.

الأول فقط، أو لا شيء إذا كفت العناوين وحدها.

RTLالمؤشّر يدور رأسياً فلا ينعكس، الذي ينعكس هو موضعه

Accordion

الأقسام المطوية
aria-expanded + aria-controls

Use it when

Content that is read, compared, and kept: product details, an FAQ, long settings sections.

Full entry
المدينة
القاهرة
الرياض
دبي
عمّان
RTLاللائحة تُحاذى ببداية المشغّل، والسهم لا ينعكس

Dropdown / Select

القائمة المنسدلة
<select> / role="listbox"

Use it when

A quick pick and out: a field value, or one command from a list. Nothing worth reflowing the page for.

Full entry

The classic mistake

Building a dropdown with accordion logic inside the page flow, so everything below jumps on every open, and the trigger itself moves out from under the pointer.

Other comparisons