Skip to main content

Harshal V. LADHE

Web Accessibility (a11y) Standards and Practices

Web accessibility (a11y) standards, ensuring websites are usable by everyone, regardless of disability or device.

Content tagged accessibility

  • Tutorial:CSS Custom Highlight API: ::highlight() for Search Results

    Highlight search matches with CSS without touching the DOM.
    Highlight search results with the CSS Custom Highlight API: ::highlight(), CSS.highlights, StaticRange, priority, accessibility and a mark fallback.
    Published at:
    Categories:CSS
    Estimated reading time:14 min read
  • Tutorial:contrast-color(): Automatic Readable Text on Any Background

    Let CSS choose readable white or black text automatically.
    Use CSS contrast-color() to pick white or black text for any background colour: how the spec defines it, custom properties and brand colours, buttons and tags, pairing with light-dark(), mid-tone limits, and an @supports fallback.
    Published at:
    Categories:CSS
    Estimated reading time:10 min read
  • Snippet:SVG Circular Progress Ring with CSS Variables

    Build an SVG progress ring from one CSS variable.
    Build an accessible SVG circular progress ring: pathLength and a --progress variable set the arc, with a gradient variant and smooth value transitions.
    Published at:
    Categories:SVG
    Estimated reading time:6 min read
  • Snippet:SVG Marching Ants Border for Drop Zones and Selections

    Animate a marching dashed SVG border around any box.
    Build a marching ants border with an SVG rect and stroke-dashoffset: a seamless loop, a crisp overlay for any box size, and reduced-motion support.
    Published at:
    Categories:SVG
    Estimated reading time:7 min read
  • Snippet:SVG Three-Dot Loading Indicator with Staggered Delays

    Build a three-dot SVG loader with staggered delays.
    Build an accessible three-dot SVG loading indicator: three circles, one keyframes rule and negative animation-delay values, with reduced-motion support.
    Published at:
    Categories:SVG
    Estimated reading time:7 min read