Use one labelled input for verification codes, with paste, a numeric keyboard, and autofill.
Badges
Badges come from GitHub once the author claims this feed.
Recent posts
every link opens the author’s post-
Better One-Time Code Inputs Without Six Tiny Boxes
-
Getting Form Data With the FormData API
Use FormData to collect named form fields, inspect values, handle checkboxes and files, and send data with fetch while keeping normal form submission.
-
requestSubmit() vs submit(): validation and events
Compare requestSubmit() and submit() for JavaScript form submission.
-
JavaScript Module Scripts Are Deferred by Default
JavaScript module scripts are deferred by default.
-
defer, async, and type="module": How Scripts Actually Load
Compare defer, async, and type="module" script loading.
-
A Progressive Enhancement Pattern With Custom Elements
A progressive enhancement pattern with custom elements: add a password visibility button after setup, keep the native field, and avoid duplicate controls.
-
Web Components Make More Sense When They Enhance HTML
Use Web Components to enhance working HTML.
-
How to Style Broken Images Without JavaScript
Style broken images with useful alt text, stable dimensions, and scoped CSS.
-
Defensive CSS for Long Words, URLs, and Unexpected Content
Defensive CSS keeps layouts usable with long text, missing images, and larger labels.
-
1fr vs minmax(0, 1fr) in CSS Grid
Compare 1fr with minmax(0, 1fr) in CSS Grid.
-
Fix Flexbox Overflow With min-width: 0
Use min-width: 0 to let flex items shrink below their automatic minimum.
-
What CSS appearance Actually Does
CSS appearance changes a form control’s styling.
-
Style Native Form Controls With accent-color
Use accent-color to style native checkboxes, radios, sliders, and progress indicators.
-
Stop Scrollbar Layout Shifts With scrollbar-gutter
Use scrollbar-gutter to reserve space for classic scrollbars.
-
Prevent Scroll Chaining With overscroll-behavior
overscroll-behavior controls scrolling at a container's boundary.
-
Keep scroll targets clear with CSS scroll-padding
scroll-padding sets a viewing inset for anchor targets and snap positions.
-
Keep Anchor Links Below Sticky Headers With scroll-margin
scroll-margin keeps anchor targets clear of sticky headers.
-
Better Vertical Text Alignment With text-box-trim
CSS text-box-trim adjusts space around text using font metrics.
-
Why content-visibility Often Needs contain-intrinsic-size
contain-intrinsic-size reserves space while content-visibility skips rendering.
-
Can content-visibility Make Long Pages Render Faster?
CSS content-visibility can defer rendering work on long pages.
-
How I Check My RSS Subscriber Count
My RSS subscriber count comes from reader-reported totals stored in Cloudflare D1.
-
Let Components React to CSS Variables With Style Queries
CSS style queries let components react to custom properties on their ancestors.
-
Sticky and Snapped Elements With CSS Scroll-State Queries
CSS scroll-state queries can style stuck headers and snapped cards, or hint at more scrollable content.
-
Draw shaped borders with CSS border-shape
CSS border-shape lets borders and shadows follow a custom outline.
-
CSS corner-shape Goes Beyond Rounded Corners
CSS corner-shape adds bevels, scoops, and squircles to ordinary boxes.
-
CSS Calculations With sibling-index() and sibling-count()
Use CSS sibling-index() and sibling-count() for staggered animations and position-based calculations, with working examples and browser support checks.
-
Using HTML Attribute Values Inside CSS With attr()
CSS attr() reads HTML attributes for generated labels and typed calculations.
-
Round CSS sizes to fixed steps with round()
CSS round() snaps responsive values to useful steps.
-
What the Browser Already Does Without a Framework
Before adding a frontend framework, check what HTML, CSS, forms, responsive images, preferences, and browser navigation already provide.
-
Why I Keep Fonts, CSS, and JavaScript With My Site
Self-hosting CSS, JavaScript, and fonts keeps critical dependencies versioned, predictable, and close to the page that needs them.