Frontend tools that explain themselves

Free tools and explainers for CSS and UI. No sign-up, no paywall, no tracking. They work on any device and with any assistive technology.

Try a pair

Selector 1

#nav .link

Specificity 1, 1, 0. Wins.

Wins

Selector 2

nav ul li a:hover

Specificity 0, 1, 4.

Loses

#nav .link wins in the first column: 1 ID beats 0.

Selector 1

:where(#nav) .link

Specificity 0, 1, 0.

Loses

Selector 2

nav .link

Specificity 0, 1, 1. Wins.

Wins

nav .link wins in the third column: 1 type or pseudo-element beats 0.

Selector 1

:is(#nav, .menu) a

Specificity 1, 0, 1. Wins.

Wins

Selector 2

.menu .link a

Specificity 0, 2, 1.

Loses

:is(#nav, .menu) a wins in the first column: 1 ID beats 0.

Which selector wins? Every pair is computed at build time.

Tools

  • CSS

    CSS Specificity Wars

    Compare CSS selectors, see each part's weight, expand nesting and walk the full cascade to find out which rule wins and why.

    Updated

  • CSS

    Selector Playground

    Type any CSS selector and instantly see every part, what it contributes to specificity, and warnings about deprecated or risky patterns.

    Updated

  • CSS

    Stylesheet Audit

    Audit pasted CSS with a specificity graph, sortable selector table, layer order and findings. Spot ID weight, deep selectors and important declarations.

    Updated

  • Accessibility

    Accessible Name Wars

    Find which label names a button, link, input or image. Follow the accessible name algorithm, inspect competing sources, and fix common labeling mistakes.

    Updated

  • Accessibility

    Focus Order Trace

    See the order the Tab key follows through your HTML. Spot positive tabindex jumps, focus stops with no role or name, and controls left out of reach.

    Updated