` element and apply a CSS style to them.
```html
` Elements in Nested Lists
This example demonstrates how to select only the top-level list items (` `) of a specific unordered list (`
This span is a direct child of div (will be highlighted).
```
### Example 2: Selecting Direct `This span is inside a paragraph, which is inside the div (will NOT be highlighted).
- `), without affecting nested list items.
```html
- Top-level Item 1 (will have a red border)
- Top-level Item 2 (will have a red border)
- Nested Item A (will NOT have a red border)
- Nested Item B (will NOT have a red border)
- Top-level Item 3 (will have a red border)
YouTip