Selects all <div> elements and all <p> elements
Selects all <p> elements inside <div> elements (all children and grandchildren) |
Selects all <p> elements where the parent is a <div> element (direct children only) |
Selects all <p> elements that are placed immediately after <div> elements |
Example
a[href*="w3schools"]
Selects every <a> element whose href attribute value contains the substring
or more flexible