CSS CSS Basics (2014) Basic Selectors Pseudo-Classes

pamela guy
pamela guy
Pro Student 4,311 Points

can someone help me out with this question? Thank you.

CSS Basics pamela guy Challenge Task 1 of 3

Use the pseudo-class selector that targets default, unvisited links. Set their color value to orange.

Can someone help me out with this question. Thank you!

/* Complete the challenge by writing CSS below */
.a:unvisited {
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

18,266 Points

You were targeting a class called "a". For unvisited links you use :link and for visited links use :visited.



There is no pseudo class called "unvisited". Rather, you can use the pseudo class "link" for the orange color declaration, and differentiate between the clicked and un-clicked links by using the "visited" pseudo class.

Your answer should look something like this:

a:link {
color: orange;

Hope that helps!