0% found this document useful (0 votes)
14 views33 pages

Reporting For Toms

CSS selectors are used to select and style HTML elements. They can be divided into five categories: simple selectors select elements by name, id, or class; combinator selectors select elements based on their relationship; pseudo-class selectors select elements based on a certain state; pseudo-element selectors select and style parts of elements; and attribute selectors select elements based on attributes or values. The adjacent sibling selector selects an element directly after another in the DOM tree that shares the same parent.

Uploaded by

Iden
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views33 pages

Reporting For Toms

CSS selectors are used to select and style HTML elements. They can be divided into five categories: simple selectors select elements by name, id, or class; combinator selectors select elements based on their relationship; pseudo-class selectors select elements based on a certain state; pseudo-element selectors select and style parts of elements; and attribute selectors select elements based on attributes or values. The adjacent sibling selector selects an element directly after another in the DOM tree that shares the same parent.

Uploaded by

Iden
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 33

CSS3 Selector

s
CSS selectors ar used to "find" (or select) the HTML elements you
wa nt to style

We can divide CSS selectors into five categories:

•Simple selectors (select elements based on name, id, class)


•Combina tor selectors (select elements based on a specific
relationship between them)
• Pseduo-c lass selector s (select elements based on a
certain state)
• Pseudo-elements selector s (select and style a part of an
element)
•Attribute selectors (select elements based on an attribute or
attribute va lue)
Adjacent Sibling Selector (+)

The adjacent sibling selector is used to select an element


that is directly after another specific element. Sibling
elements must have the same parent elem ent, and
"adja cent" means "immedia tely following". The following
example selects the first <p> element that are placed
immediately after <div> elements:

You might also like