9.7. Styling Hyperlinks

Hyperlinks are a special category of text used on a Web page. They are active elements that create navigational points for users to change their viewpoint to elsewhere on the same page, another page on the same site, or another site. They can, in fact, be used for many tasks if you call on the capabilities of JavaScript, but those uses are beyond the scope of this book.

There are two ways to control the style of hyperlinks. You can treat links like any other text for the purposes of styling their initial static appearance. Or you can take advantage of four anchor pseudo-classes to style the appearance of text in any of the four interactive states in which it can exist. These four states and their corresponding pseudo-classes ...

Get HTML Utopia: Designing Without Tables Using CSS 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.