user‑select CSS Playground - Online Text Selection Control
Apply user‑select: none, text, all and see how it affects selection. Copy the CSS snippet for your UI elements.
UD5 Toolkit
Explore and test all 22+ HTML input types in real-time. Interact, copy code, and understand browser behavior.
HTML5 defines 22+ input types including: text, password, email, url, search, tel, number, date, time, datetime-local, month, week, color, range, file, checkbox, radio, submit, reset, button, image, and hidden. Each type provides specialized input behavior, keyboard layouts on mobile devices, and built-in validation. Unknown types gracefully fall back to type="text".
Several input types optimize mobile keyboards for specific data entry:
Disabled (disabled): The input cannot be focused, its value is not submitted with the form, and it appears grayed out. Readonly (readonly): The input can be focused and tabbed to, its value is submitted with the form, but the user cannot modify the content. Use readonly when you want to display pre-filled data that should be submitted, and disabled when the field should be completely excluded from form submission.
Input types like date, time, datetime-local, month, and week trigger the browser's native date/time picker UI. On desktop Chrome/Edge, a clean calendar popup appears. On Safari, a different native picker is used. On mobile devices (iOS/Android), the OS-level date spinner or calendar is shown. This eliminates the need for JavaScript date picker libraries for basic use cases. The value format for date is always YYYY-MM-DD regardless of display format.
type="hidden" creates an invisible input field that stores data in the DOM without any visual representation. Common use cases include CSRF tokens, user IDs, session identifiers, or any server-generated data that needs to be submitted with a form but should not be seen or modified by users. The value is still visible in the page source and can be inspected via browser DevTools, so never store sensitive secrets in hidden fields.
Yes! The pattern attribute accepts a regular expression that the input value must match for form validation to pass. For example, pattern="[A-Za-z]{3,}" requires at least 3 alphabetic characters. Combined with required and title (for custom error messages), you can create powerful client-side validation without JavaScript. The title attribute text appears as a tooltip when validation fails.
Checkboxes allow multiple independent selections – each checkbox toggles on/off individually. Radio buttons with the same name attribute form a mutually exclusive group – selecting one automatically deselects the others. Use checkboxes for "select all that apply" scenarios and radio buttons for "choose one" scenarios. Both use the checked attribute to set a default selection.
type="image" creates a graphical submit button using an image specified by the src attribute. When clicked, it submits the form along with the x/y coordinates of the click position (as name.x and name.y parameters). This was historically used for image-based submit buttons and server-side image maps. For modern web apps, consider using type="submit" with CSS-styled buttons or inline SVG icons for better accessibility and control.
Apply user‑select: none, text, all and see how it affects selection. Copy the CSS snippet for your UI elements.
Write CSS with native nesting (like SCSS) and see the browser’s native parsing. Validator and live output.
Manipulate CSS values as typed objects using attributeStyleMap. Convert between CSSUnitValue, CSSMathSum, etc. Futuristic CSS‑in‑JS.
Swap between physical and logical properties (margin‑inline vs margin‑left). Live preview with writing‑mode. Internationalize your CSS.
Load images or use colors and apply all 15 CSS blend modes. Visual tester for creative effects.
Test the new style() function inside @container to query custom property values. Revolutionary component‑based responsive design.
Build a Vite configuration file by selecting plugins (Vue, React, etc.), aliases, and build options. Copy the final code.
Create promises that resolve or reject after a delay. See state changes and chain .then/.catch. Debug async code.
Reset native styling on form elements with appearance: none. See before and after. Essential for custom forms.
Paste a raw server log snippet and see a structured table with IP, method, URL, and status. Quick audit.
Build a renovate.json file to automate dependency updates. Choose schedule, automerge, and package rules. Local.
Paste your CSS and see rules sorted by specificity. Find overrides and potential collisions. Understand your cascade.
Register a custom CSS property with syntax, initial value, and inherits. Animate colors and numbers that couldn’t before.
Access the Paint Timing API and display First Paint, First Contentful Paint, and Largest Contentful Paint times. Quick perf check.
Paste your CSS and get a sorted list of all custom properties defined under :root with their values. Quick audit.
Estimate arrival time with driving duration, breaks, and time zone changes. Plan your road trip precisely.
Get a random, unique superpower with a detailed description and limit. Perfect for character creation or daydreaming.
Implement a dark/light theme toggle that respects prefers‑color‑scheme. Copy the complete JavaScript and CSS.
Identify dog breeds from silhouettes or partial images. Score tracking. Fun for all ages. Local only, no images uploaded.
Enter a URL and instantly generate a PDF version using the browser's print-to-pdf engine. Private, no upload.
Enter a URL and instantly generate a PDF version using the browser's print-to-pdf engine. Private, no upload.
Set up multiple @layers and use revert‑layer to fall back. See the computed style and cascade resolution live.
Schedule tasks with user‑visible, user‑blocking, or background priority. See execution order and delays. Modern web perf.
See the current Service Worker registration, its state, and scope. Send 'skipWaiting' and update. PWA debug.
Calculate flour, water, starter amounts to achieve a target loaf hydration. Adjusts for starter hydration. Instant local calculation.
Generate a random 5‑color palette where every adjacent pair passes WCAG AA contrast. Safe for inclusive designs.
Paste your stylesheet and get a clean list of all custom properties defined under :root. Copy the whole block. Local analysis.
See your device's battery level, charging status, and discharge time using the Battery Status API. Fun utility.
Log shedding events, note duration, and track humidity to optimize next cycle. Healthy scales.
Upload any picture and instantly get a 5‑color palette. Useful for UI design themes. Canvas‑based extraction.