Posted by : Rhyf Ahmad Thursday, May 14, 2015

A selector is a pattern; it’s the part of a CSS rule that matches a set of elements in an HTML or XML document. The declarations that appear in the block that follows the selector are applied to all elements that match this pattern, unless they’re overridden by another rule in the cascade. As is discussed briefly in Selectors , a selector can contain a chain of one or more simple selectors separated by combinators.

A pseudo-element —for example, :first-line—can also be included after the last simple selector in the chain. A simple selector contains either an element type selector , such as h1, or the universal selector, *. The universal selector can be considered to be implied (and can therefore be omitted) if it isn’t the only component of the simple selector.

Contents:

Universal Selector
Element Type Selector
Class Selector
ID Selector
Attribute Selector
  1. CSS3 Attribute Selectors

Selector Grouping
Combinators
  1. Descendant Selector
  2. Child Selector
  3. Adjacent Sibling Selector
  4. General Sibling Selector

Pseudo-classes
  1. :link
  2. :visited
  3. :active
  4. :hover
  5. :focus
  6. :first-child
  7. :lang(C)
  8. CSS3 Pseudo-classes

Pseudo-elements
  1. :first-letter
  2. :first-line
  3. :before
  4. :after
  5. :selection 




Ebook Preview
Get the ebook now (686 kB)

If the link above doesn't work, try the link below


Mirror: Get the ebook now (686 kB)

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget
Instagram

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -