6.7 CSS for Links

Have you ever noticed that after clicking on a link and returning later, the link’s color is different? For example, note the different colored links at the top of the Clock Tower web page in Figure 6.6. The left link, labeled Clock Tower Photograph, is blue, indicating that the link has not been clicked. On the other hand, the right link, labeled Clock Tower Photograph, is purple, indicating that the link has been clicked in the past. By default, the major browsers use blue text for unclicked links and purple text for clicked links. More formally, those links are referred to as unvisited links and visited links, respectively. The HTML5 standard does not mention blue and purple as typical defaults, but those colors have been ...

Get Web Programming with HTML5, CSS, and JavaScript 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.