Chapter 12. Styling Links

<feature><title>What You’ll Learn in This Hour:</title>
  • What pseudo-selectors let you designate effects for active links, mouse hovers, and an element focus

  • Which order pseudo-classes follow for link styling and inheritance

  • How to create some of the most common link effects, including replacing the attributes on the <body> tag, removing underlines, and creating dynamic mouseovers

The capability to make hyperlinks is what enables the interconnectedness of the Web; HTML itself is named for the hypertext links. Cascading Style Sheets can be used to style these links beyond the default blue-underlined-text. You’ve already learned how to use :link and :visited pseudo-classes to create CSS rules for link presentation in Hour ...

Get Sams Teach Yourself CSS 24 in Hours 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.