HTML lab collection
Modern HTML playgrounds
Explore semantic elements, attributes, and HTML APIs visually. Every lab includes interactive controls, a live preview, and reusable generated code.
No matches found
Try another name or select a different category.
ATTRIBUTES/APIs
Interactive examples for attributes/apis.
Create non-modal top-layer content with the popover attribute. Compare declarative controls and JavaScript, test light dismiss, and copy reusable HTML, CSS, and JS.
ELEMENTS
Interactive examples for elements.
Explore datalist as a collection of suggested values for an input. Change the control type, configure attributes, and compare native menus, range ticks, and pickers without restricting the value to the available options.
Explore details with controls to edit each summary and content, add new blocks, and test the name attribute for JavaScript-free exclusive accordions.
Explore dialog with a minimal preview made only from the opening button and the modal. Change command, commandfor, and closedby without generating CSS.
Explore <geolocation> as a declarative browser-managed location control, adjust its attributes, and copy the HTML with fallback content. This declarative option is useful because the browser owns a contextual, trusted permission UI, reduces imperative JavaScript, and better reflects explicit user intent.
Explore all 22 input types, their attributes and native validation. Compare values, states and form data without sending anything to a server.
Explore the proposed <install> browser-managed installation control. The playground retains installurl from the initial trial; the guide distinguishes it from the current manifest attribute and explains requirements, identity, and fallback without installing apps while you read.
Explore meter with controls for the current value, total range, and low, high, and optimum thresholds of a known scalar measurement.
Explore progress with controls for the current value, the task maximum, and the indeterminate state created by omitting the value attribute.
Explore select with controls to edit its label, reorder options, create optgroups, add hr separators, and test multiple and size without JavaScript.
Build tabular data with table, caption, th, scope, thead, tbody, tfoot, colgroup, colspan, and rowspan while previewing and copying the result.
Combine the three HTML list types, create nested levels, and generate semantic markup with ul, ol, li, dl, dt, and dd.
Explore <usermedia> as a trusted, browser-managed control for requesting camera and microphone access. Configure setConstraints(), connect the MediaStream to a preview, and compare the native element with progressive enhancement based on getUserMedia().