CSS Selector Playground & Matcher

Test and debug CSS selectors against your custom HTML. Highlights matching DOM elements in real-time, inspects element paths, and checks querySelectorAll offline.

0 Matches
HTML MARKUP INPUT 0 lines
LIVE RENDERED PREVIEW (WITH HIGHLIGHTS) DOM Tree

Frequently Asked Questions

How do I write a selector for direct child elements only?

Use the child combinator > (e.g. ul.nav > li). This matches only <li> elements that are direct children of ul.nav, ignoring grandchildren inside nested sub-menus.

Is my HTML code safe?

Yes. The entire playground executes locally inside your web browser. No HTML markup or selector queries are sent over the network.