Pops wrote:
You can so do multiple selects, like find all divs and h3

  $('div h3')

but if you use the comma:

  $('div,h3')

that says find the H3 tag that is within div,  I think <g>

It's vice versa. Find all div and h3 *elements*:

$('div, h3') // grouping

Find all h3 elements that are descendants of divs:

$('div h3') // => descendant selector

Grouping selectors:
http://www.w3.org/TR/CSS21/selector.html#grouping

Descendant selector:
http://www.w3.org/TR/CSS21/selector.html#descendant-selectors

Elements are not tags:
http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.1

"Elements are not tags. Some people refer to elements as tags (e.g., "the P tag"). Remember that the element is one thing, and the tag (be it start or end tag) is another. For instance, the HEAD element is always present, even though both start and end HEAD tags may be missing in the markup."



--Klaus

Reply via email to