Not sure why text isnt black at start

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<style>
a: {
  color: #000;
}
a:hover {
  color: blue;

}



</style>
<a href="https://freecatphotoapp.com/" target="_blank">CatPhotoApp</a>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14092.66.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.95 Safari/537.36

Challenge: Adjust the Hover State of an Anchor Tag

Link to the challenge:

you are not using correct selector syntax

if you are selecting elements then just use element
example

h1 {
//your code
}

but in your code your are using

wrong syntax use a tag only

Colons are used for pseudo classes and pseudo elements which you’ll encounter more later on :slight_smile:

This is wrong:

It should be like this:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.