Details Summary Disclosure Widget
Create a native disclosure widget using the details and summary elements with custom styling and open event handling.
Create a native disclosure widget using the details and summary elements with custom styling and open event handling.
Create a native modal dialog using the dialog element with showModal and form method close for accessible interactions.
Wrap images with semantic captions using the figure and figcaption elements for accessible content illustration.
Provide native autocomplete suggestions using the datalist element paired with a text input for enhanced UX.
Display live calculation results using the output element bound to form inputs with the for attribute.
Serve responsive images with art direction using the picture element and multiple source tags with media queries.
Display task completion using native progress and meter elements with accessible labels and value bounds.
Apply column level styling and spanning using colgroup and col elements for efficient table layout control.
Define a reusable component using template and slot elements inside a shadow DOM root for encapsulation.
Encode machine readable timestamps using the time element with datetime attribute for SEO and accessibility.
Use the dialog element for accessible modals with focus trapping and close on backdrop.
Show form validation errors in an accessible summary with aria-live and focus management.
Make HTML tables sortable with accessible buttons and aria-sort for screen readers.
Build a native HTML modal with showModal, labelled and described content, Escape and backdrop dismissal, and a live result message.
Style a native multiple file input with a focusable label button, announce selected files, and reject oversized files before upload.
Validate a signup form with a focusable error summary, linked error messages, aria-invalid states, and a polite success announcement.
Sort an HTML data table with real buttons, keep aria-sort on the active column, and announce each sort change to screen readers.
Implements accessible web components using ARIA attributes, proper roles, keyboard navigation support, and screen reader announcements.
Uses ARIA live regions to announce dynamic content changes to screen readers, supporting polite and assertive announcement modes.
Structures a blog article with semantic elements including header, time, figure, blockquote, and proper heading hierarchy for content rich pages.
Defines a custom HTML element with lifecycle callbacks, observed attributes, and Shadow DOM encapsulation for reusable component creation.
Uses data attributes to store custom data in HTML elements, accessed via JavaScript dataset API for configuration and state management.
Creates an accessible data table with proper scope attributes, captions, column groups, and responsive design for tabular data presentation.
Uses native details and summary elements to create accessible expandable content sections without JavaScript, with custom styling.
Uses the HTML dialog element to create modal and non-modal dialogs with built-in focus management, backdrop, and JavaScript API.
Uses figure and figcaption elements to associate media content with captions, supporting images, code blocks, and quoted content.
Creates accessible HTML forms with various input types, built-in validation attributes, proper labeling, and user-friendly error messaging.
Implements native lazy loading for images and iframes using the loading attribute, with Intersection Observer fallback for older browsers.
Showcases all HTML5 input types with appropriate attributes for data collection, validation, and enhanced user experience across different devices.
Uses the mark element to highlight relevant text portions, such as search results or important terms, with semantic meaning and styling.
Demonstrates essential meta tags for SEO, Open Graph, Twitter Cards, and mobile optimization including viewport and charset declarations.
Creates visual gauge indicators using the meter element with color-coded thresholds for displaying system metrics and measurement ranges.
Creates a semantic navigation menu with proper ARIA attributes, keyboard navigation, current page indication, and responsive hamburger toggle.
Uses the picture element with multiple sources to serve different images based on viewport size, format support, and pixel density.
Uses native progress and meter elements to display completion status and scalar measurements with proper accessibility attributes.
Uses srcset and sizes attributes to serve appropriately sized images based on viewport, plus art direction with the picture element.
Uses ruby, rt, and rp elements to add pronunciation guides and annotations above East Asian characters, with fallback support.
Creates a content layout using section and aside elements with proper heading hierarchy for main content and complementary sidebar information.
Demonstrates semantic HTML5 elements for structuring content meaningfully, improving accessibility and SEO with proper document outline.
Uses slot elements with named and default slots to create flexible web component templates that accept distributed content from the parent.
Adds structured data using JSON-LD format for Schema.org markup to help search engines understand page content and enable rich results.
Uses the template element to define reusable HTML fragments that can be cloned and inserted into the DOM without rendering until activated.
Uses the time element with datetime attribute to represent dates and times in a machine-readable format for scheduling and display.