Im struggling with hexcodes please hepl

I am struggling with these hexcode please someone help.
Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<style>
red-text {
  color: #FF0000;
}
orange-text {
  color: #FFA500;
}
dodger-blue-text {
  color: #1E90FF;
}
green-text {
  color: #00FF00;
}
</style>

<h1 class="#FF0000">I am red!</h1>

<h1 class="#00FF00">I am green!</h1>

<h1 class="#1E90FF">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36

Challenge: Use Hex Code to Mix Colors

Link to the challenge:

You have two issues.

For each of your class definitions like this:

red-text {
  color: #FF0000;
}

You removed the period (.) before “red-text”. Without that, it thinks you are trying to target an HTML element. The period tells it that it is a class. You need to fix that in 4 places.

Then in applying the class:

<h1 class="#FF0000">I am red!</h1>

You didn’t need to change this line. The name of the class should be what it was originally, “red-text”. You need to fix that in 4 places.

When I fix all that, your code passes for me.

1 Like