Hour 18. Using Mouse Actions to Modify Text Display

What You’ll Learn in This Hour:

Image How to display tooltips when users move their mouse

Image How to use mouse events to change something about the page

Throughout this book, you have seen examples of how mouse actions can affect the display of text. The simplest example is when the hover pseudoclass of the <a> link is defined in the stylesheet to display text in a different color when a user’s mouse hovers over it. In the previous hour, you learned how the hover pseudoclass changed both the text color ...

Get HTML and CSS in 24 Hours, Sams Teach Yourself (Updated for HTML5 and CSS3), Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.