Used to retrieve content that matches conditions, such as contains or they are visible/hidden or are in a particular position within their parent.
Yippie!
Examples:
:contains('text')
: selects elements that contain specific text:parent
: select elements have at least one child node (element or text):has(selector)
: selects elements that contain at least one element that matches the selector:first-child
: selects elements that are the first child of their parent:last-of-type
: selects elements that are the last of their type among siblings:nth-child
: selects elements that are the nth child of their parentThis is paragraph 1.
This is paragraph 2.
This is paragraph 3.
This is paragraph 4.
This is paragraph 5.