Dropdown
A dropdown is a user-interface control that presents selectable options, often revealing them when activated.
A Pythonic Adventure: From Python basics to a working web app
A select element is an HTML form control that presents a list of options from which a user can choose.
- How it is used
- Collects drink, flavor, and topping choices for a coffee-order form.
- How deep it goes
- Demonstrates select construction, option lists, names, and Flask retrieval without detailing validation or browser internals.
- Examples
- Uses coffee, chocolate, and decaf menus plus flavor and topping selections in a coffee shop order.
- What you can do after
- Build it from scratch as named HTML menus whose submitted choices a Flask handler can display.
Read how A Pythonic Adventure: From Python basics to a working web app explains dropdown →
The Well-Grounded Data Analyst
A Streamlit input widget that displays selectable options in a dropdown control.
- How it is used
- Deploys drop-down menus in Streamlit proof-of-concept apps to filter data interactively and refresh analytical outputs.
- How deep it goes
- Explains selectbox layout, placeholders, dependent options, filtering, and downstream metrics, while deferring broader Streamlit features.
- Examples
- Uses county, town, and street selectors in a Welsh house-price explorer, alongside metrics, charts, and filtered raw data.
- What you can do after
- Build interactive Streamlit filters that drive pandas queries and update summary metrics, visualizations, and tables.
Build Python Web Apps with Streamlit
A dropdown is a user-interface control that lets a user choose one or more options from a list revealed on interaction.
- How it is used
- Lets users select source and destination units, with available choices tied to the selected quantity.
- How deep it goes
- Explains options, returned selections, and default indexing, but does not detail widget internals.
- Examples
- Uses From and To unit selectors with choices such as kilograms, grams, pounds, and ounces.
- What you can do after
- Apply it via Streamlit’s `st.selectbox` to present options and set an initial selection.
Read how Build Python Web Apps with Streamlit explains dropdown →
React Quickly, Second Edition
A select box is an HTML control that lets a user choose one or more options from a list.
- How it is used
- Uses dropdowns to capture choices such as task priority or the user shown on an administrator dashboard.
- How deep it goes
- Explains controlled single-select values and option elements, then outlines multiselect state and selected-option extraction.
- Examples
- Uses task priority, a multiselect list of people, and an administrator choosing which user’s dashboard to view.
- What you can do after
- Build it from scratch by binding a select to state and updating the chosen task priority.
CSS in Depth, Second Edition
A dropdown is an interface control that reveals a list or panel of selectable options when activated.
- How it is used
- Uses dropdowns to demonstrate positioned menus and transitions for opening and closing them.
- How deep it goes
- Explains menu markup, click handling, positioning, and opacity or height transitions.
- Examples
- Builds a Main Menu with links, then uses a separate menu to demonstrate fade and height effects.
- What you can do after
- Build a click-operated menu by toggling an open class and positioning its panel outside normal flow.
Tiny CSS Projects
A select element is an HTML form control that presents a list of options from which a user can make a selection.
- How it is used
- Styles a native select in a contact form to coordinate with other form controls.
- How deep it goes
- Applies shared control styles, a background color, and a hover cursor, then stops short of fully restyling native options.
- Examples
- Uses a contact-form select with a card-colored background and a pointer cursor on hover.
- What you can do after
- Apply CSS to align a native select with other form controls and signal its clickability.
Data Storytelling with Altair and AI
A dropdown menu is an interactive control that reveals a list of choices from which a user can select an option.
- How it is used
- Supports exploratory data visualization while preserving a focused comparison or narrative.
- How deep it goes
- Details four Altair implementation steps and stops short of broader interaction design beyond the exercise examples.
- Examples
- Uses population-by-continent lines, North America comparisons, country selection, and positive-versus-negative trend highlighting.
- What you can do after
- Build it from scratch in Altair by binding selectable values, attaching a selection, and filtering chart data.
Read how Data Storytelling with Altair and AI explains dropdown →
ASP.NET Core in Action, 3e
A select element is an HTML form control that presents one or more options for user selection.
- How it is used
- Uses selectable form options to collect a user's choice, such as a currency to convert.
- How deep it goes
- Explains option and selection properties, Tag Helper bindings, display variations, and blank options.
- Examples
- Demonstrates currency selection, language options, list boxes, multiselect, grouped options, and a blank option.
- What you can do after
- Apply the Select Tag Helper to render dropdowns, list boxes, multiselect controls, and grouped options.
Build a Website with ChatGPT
A dropdown list is a selection-list interface that initially shows a compact field and reveals its available choices when activated.
- How it is used
- Filters JSON course records by selected field values and lets users choose fields for sorting.
- How deep it goes
- Explains selection-list behavior and prompt requirements for HTML and JavaScript, but does not detail generated implementation code.
- Examples
- Uses Department and Instructor filters, Department and Title sorting, and sample pet, mood, philosopher, and vacation choices.
- What you can do after
- Apply it via generated HTML and JavaScript to filter JSON records or reorder course-catalog results.
Secrets of the JavaScript Ninja, Second Edition
An HTML element that provides a control for selecting among options.
- How it is used
- Uses select as the required container for option markup during HTML-to-DOM conversion.
- How deep it goes
- Explains option containment and shows wrapper-based parsing, but does not detail dropdown selection behavior.
- Examples
- Uses ninja options and self-closing table markup to illustrate HTML preprocessing and wrapping.
- What you can do after
- Apply the containment rule by wrapping option markup in select when converting HTML strings into DOM nodes.
Read how Secrets of the JavaScript Ninja, Second Edition explains dropdown →
Also covered in
- BDD in Action, Second Edition
- Building User-Friendly DSLs
- Pro Angular 16
- Web Components in Action
- Hugging Face in Action
- Vanilla WebIn early access (MEAP)
- React in Depth
- Pro ASP.NET Core 7, Tenth Edition
What to know first
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- buttonA button is an interactive user-interface control that a user can activate to initiate an action or select an option.
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- digital imageA digital image is a digital representation of visual content, commonly encoded as an arrangement of pixels or other graphical elements.
Related concepts
- option elementhas part · An option element is an HTML element representing one selectable choice within a select control.
- absolute positioningconfigured by · Absolute positioning is a CSS layout technique that removes an element from normal flow and positions it relative to a containing block, typically established by a positioned ancestor.
- configurationconfigured by · Configuration is a set of settings or structural choices that specifies how a system, application, or component is organized or operates.
- web formpart of · A web form is a web-page interface that groups controls for collecting user input and submitting it for processing.
Questions about dropdown
What is dropdown?
A dropdown is a user-interface control that presents selectable options, often revealing them when activated.
Which Manning books explain dropdown?
A Pythonic Adventure: From Python basics to a working web app, The Well-Grounded Data Analyst, Build Python Web Apps with Streamlit, React Quickly, Second Edition, CSS in Depth, Second Edition, Tiny CSS Projects, Data Storytelling with Altair and AI, ASP.NET Core in Action, 3e and 2 more.
What should I know before learning dropdown?
Manning books that teach dropdown usually introduce JavaScript, button, HTML and digital image first.
What is dropdown a kind of?
Dropdown is a kind of Gradio component. A Gradio component is a user-interface building block that accepts input, displays output, or provides an interactive control in a Gradio application.
What is dropdown part of?
Dropdown is part of web form. A web form is a web-page interface that groups controls for collecting user input and submitting it for processing.
What are the parts of dropdown?
Dropdown includes option element.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.









