• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. CSS Selectors > Advanced Pseudo-Classes

Advanced Pseudo-Classes

In addition to the two anchor pseudo-classes that were previously described, CSS2.1 has four more pseudo-classes. Three of them allow dynamic effects: The style changes when the user does something. The fourth pseudo-class selects elements that are the first children of their parent.

User-Interaction: The Active, Hover, and Focus Pseudo-Classes

CSS2.1 can describe a few dynamic effects. They typically give the users of a document extra visual feedback on the purpose of various elements. For example, you can change the color of an A element when the mouse moves over it, or you can change the shape of the mouse pointer itself to give an extra visual clue that the A element is active and that something more would happen if the user actually clicked instead of just moved the mouse.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint