select
The select element represents a control for selecting amongst a set of options. 4.10.7. The select element
Links about select
Standardizing <select> And Beyond: The Past, Present And Future Of Native HTML Form Controls — Smashing Magazine
In this article, Stephanie dives into the past by going back to the beginning of HTML and tracing the evolution of form controls through to the present and the current state of working with them.
<select> your poison - 24 Accessibility
If the web accessibility community were to somehow collectively agree on a single rallying cry, it could easily be “use native, semantic HTML elements.” This, like most things in accessibility, is an oversimplification, but it is a helpful one. As 2019 draws to a close, many of the popular component…
Tags:<select> your poison part 2: test all the things - 24 Accessibility
TL:DR; Jump straight to the recommendations In part 1 of this deep dive, we took a broad look at both how the native <select> element works across browsers and platforms, and the current state of accessible custom select component implementations. It’s necessary to look at how fragmented current sel…
Tags:<select>
The HTML select element represents a control that provides a menu of options
Code sample
<label for="color">Select color:</label>
<select id="color">
<option value="red"> Red </option>
<option value="green"> Green </option>
<option value="blue"> Blue </option>
</select>
Explore other pages
- scroll-snap-type
Specifies whether a scroll container is a scroll snap container, how strictly it snaps, and which axes are considered.
- meter
A scalar measurement within a known range, or a fractional value.
- aria-label
Defines a string value that labels the current element.
- position: absolute
A box is explicitly offset with respect to its containing block.