Target specific elements in lists or tables based on their position without adding extra class names.
1. Structural Selectors
⊞Code Example
/* Zebra striping table rows */
tbody tr:nth-child(even) {
background-color: #0f172a;
}
/* Remove bottom border from last list item */
.list-item:last-child {
border-bottom: none;
}
