How would you select all elements between the 3rd and 5th positions within their parent?
document.querySelectorAll(':nth-child(n+3):nth-child(-n+5)') selects all elements that are between the 3rd and 5th positions within their parent. The :nth-child(n+3) selects all children from the 3rd position onwards, and :nth-child(-n+5) selects all children up to the 5th position. Combining these selectors targets elements that satisfy both conditions. This is a powerful technique for selecting elements by their position in complex document structures.