Selector Description
div.classname Div with certain classname
div#idname Div with certain ID
div p Paragraphs inside divs
div > p All p tagsone level deep in div
div + p P tags immediately after div
div ~ p P tags preceded by div
See also: Adjacent / Sibling / Child selectors
Comments