UI Lab
A reference of default HTML UI elements. Click, copy, and paste any into your pages.
Text Inputs
Textarea (multi-line)
<textarea rows="3" placeholder="Write something..."></textarea>
Buttons
Standard button
<button>Click me</button>
Disabled button
<button disabled>Can't click</button>
Checkboxes & Radio Buttons
Select Dropdown
Dropdown menu
<select><option>Option one</option></select>
Sliders & Range
Color & Date Pickers
Progress & Meter
Progress bar
<progress value="70" max="100">70%</progress>
Meter (gauge)
60%
<meter value="0.6" min="0" max="1">60%</meter>
Expand / Collapse
Details + Summary (no JS required)
Click to expand
Hidden content appears here. Works without JavaScript.
<details><summary>Click to expand</summary><p>Hidden content</p></details>
CSS-Only Toggle (no JS)
Checkbox toggle that shows/hides content
This content appears when checked. No JavaScript needed.
<input type="checkbox" id="toggle">
<label for="toggle">Show/hide</label>
<div>Hidden until checked</div>
<style>
#toggle:checked + label + div { display: block; }
</style>
← Each element works in any browser. Copy the code snippets into your pages.