CSS CSS Basics (2014) Basic Selectors Pseudo-Classes

Next, create a pseudo-class selector that targets all visited links. Add a color property and set the value to

/* Complete the challenge by writing CSS below */
a:link {
color : orange; 
<!DOCTYPE html>
    <title>Lake Tahoe</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
      <span>Journey through the Sierra Nevada Mountains</span>
      <h1>Lake Tahoe, California</h1>
      Lake Tahoe is one of the most breathtaking attractions located in California. It's home to a number of ski resorts, summer outdoor recreation, and tourist attractions. Snow and skiing are a significant part of the area's reputation.
    <a href="#">Find out more</a>
      <h2>Check out all the Wildlife</h2>
        As spawning season approaches, the fish acquire a humpback and protuberant jaw. After spawning, they die and their carcasses provide a feast for gatherings of mink, bears, and Bald eagles.
      <a href="#">See the Wildlife</a>
    <h3>From Tents to Resorts</h3>
    Lake Tahoe is full of wonderful places to stay. You have the ability to sleep in the outdoors in a tent, or relax like a king at a five star resort. Here are our top three resorts:
      <li><a href="#">Lake Tahoe Resort Hotel</a></li>
      <li><a href="#">South Lake Tahoe Resorts</a></li>
      <li><a href="#">Tahoe Ski Resort Lodging</a></li>

2 Answers

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 88,609 Points

You've already got your :link pseuedo selector. If you want to style links that have been clicked on (i.e. visited) there's a Pseudo selector for that so you can use it in the same way.

Use it in an entirely new style rule! :-)

Robs K
Robs K
7,146 Points

Your answer should include code from the previous challenges

a:visited {
  color: /*specified-color*/;