Your h1 element with the text I am red! Should be given the color red

I got all the colours but the Red does’nt want to change

Your code so far


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

<h1 class="#FF0000-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>

Your browser information:

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

Challenge: Use Hex Code to Mix Colors

Link to the challenge:

The class of h1 element should be red-text, not #FF0000-text

1 Like

The class of h1 element should be red-text, not #FF0000-text Thankyou I got it