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

Lesson 3. Dynamic Learning Interactions > Creating CSS Rollovers with Pseudocla...

Creating CSS Rollovers with Pseudoclasses

All of the styles you have worked with so far have been classes. As you have seen, a CSS class is a collection of properties stored under a single name and applied all at once to a page element, such as a <p> or <a> tag. Formatted text either is or is not in the bodytext style because most text doesn't need more than one physical description. But hyperlinks are a bit different.

Hyperlinks do something. In addition to communicating whatever they say (the text itself), they also need to communicate that you can click on them and something will happen. The different color and frequent underlining of hyperlinks are two ways that most hyperlinks communicate that they are clickable. However, hyperlinks can communicate more than that: They can also respond to events. An event is when something happens on the page. Some events are caused by users, such as rolling over a link or clicking on a link. Other events happen automatically; for example, the browser recognizes the page loading as an event.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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