Hierarchical Selectors
Now let’s move on to hierarchical selectors, which use document structure as a way to select elements, using the previous markup example.
The third and fourth items in this list probably look fairly similar. The difference is in the word “immediately." By this example, the third item in the list would only select the Advertisment #1 image because it comes immediately after its ul sibling element in the document. The fourth item in the list, on the other hand, would select both images because both follow their ul sibling element.
© CSS Selector Libraries — Web Scraping >>> Back to TABLE OF CONTENTS <<< | ||||||||||||||||
Views: 366 | |
Total comments: 0 | |