Use hex code for specific colors issues

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

  **Your code so far**

<style>
.red-text {
  color: black;
}
.green-text {
  color: black;
}
.dodger-blue-text {
  color: black;
}
.orange-text {
  color: black;
}
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

Challenge: Use Hex Code to Mix Colors

Link to the challenge:

Please, I don’t know how to go about this assignment. I need help, please.

This is what you are starting with:

.red-text {
  color: black;
}
.green-text {
  color: black;
}
.dodger-blue-text {
  color: black;
}
.orange-text {
  color: black;
}

or dialing in a bit…

.red-text {
  color: black;
}

The word “black” there tells it to use that color for the class red-text. Obviously that is wrong. We could just change it to the word “red”. But you can also refer to colors by a code number. For example, from the description:

Red #FF0000

So, you can just use the number code instead of the words “black” or “red” to get the color red. Try substituting “#FF0000” for the word “black” and see what happens. Do that for the others.

Let us know if this is not enough information.

1 Like

Thank you so much. It worked.

It worked. Thank you so much for your help.

1 Like

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