:nth checker
Sorry:
JavaScript is not enabled…
Simple check
- Select every third element starting at second if it’s a list item
- Select the third item if it’s a list item
- Select the the first four elements if they are list items
- Select the second to last element if it is a list item
- Select the first appearing div
- Select the last appearing div
- Select odd list items
- Select every fifth list item starting at first
- Select all but the first 6 list items
Note
The <div> and <ins> elements in the code tree on the right don’t show their closing tags (for visual simplicity), but they are actually there!
Related post: Công Dụng Hữu Ích Từ :nth-child(n) Trong CSS