CSS Selector Playground
jaktestowac.pl
Input XML/HTML
Go CSS!
Bookstore Example
Show help
.title
#dune-book
.title, #dune-book
title
author, title
shelve title
book > title
magazine + book
book ~ shelve
*
book.hardcover
[category]
[category="drama"]
[category$="ma"]
[category|="sci"]
[category^="dark"]
[category~="sci-fi"]
[category*="c"]
book:first-child
title::first-letter
title::first-line
book:first-of-type
title:lang(en)
book:last-child
book:last-of-type
book:nth-child(even)
title:tr:nth-child(odd)
book:nth-child(1)
book:nth-last-child(1)
book:nth-of-type(1)
book:nth-last-of-type(1)
title:only-child
title:only-of-type
:root
Check selected
Output: