element element div p Selects all <p> elements inside <div> elements 1
element>element div > p Selects all <p> elements where the parent is a <div> element 2
element+element div + p Selects all <p> elements that are placed immediately after <div> elements 2
element1~element2 p ~ ul Selects every <ul> element that are preceded by a <p> element
When I see the course of w3schools, it explain those four selectors by that, but I am very confusing for the explain especially the first term and the second term, it looks like the same thing, anybody can give simple examples to explain what's different for those four selectors?