| A | B |
| div, p | Selects all <div> elements and all <p> elements |
| div p | Selects all <p> elements inside <div> elements |
| div > p | Selects all <p> elements where the parent is a <div> element |
| div + p | Selects all <p> elements that are placed immediately after <div> elements |
| p ~ ul | Selects every <ul> element that are preceded by a <p> element |
| [target=_blank] | Selects all elements with target="_blank" |
| [title~=flower] | Selects all elements with a title attribute containing the word "flower" |
| a[href^="https"] | Selects every <a> element whose href attribute value begins with "https" |
| p::first-letter | Selects the first letter of every <p> element |
| p::first-line | Selects the first line of every <p> element |