Question About Mixing rgb colors

Question About Mixing rgb colors
0

#1

Hi!

I turned the h1 elements the right colors as directed in the lesson. However, I didn’t do the rgb questions right. I saw the answer is first one below, but I am confused. Would someone be kind enough to explain that answer and where to stick it in the code? I pasted the second grouping of my work.

Thanks ahead of time for any assistance that you may share with me.

<p> RGB value orange: rgb(255, 165, 0) </p>

<p>
<style> 
  .red-text {
    color: rgb(255, 0, 0) 
  }
  .orchid-text {
    color: rgb(218, 112, 214)
  }
  .sienna-text {
    color: rgb(160, 82,45)
  }
  .blue-text {
    color: rgb(0, 0, 255)      
  }
  rgb (255, )
</style>

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

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

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

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

</p>

#2

The main issue is that you are missing semi-colons at the end of your rgb values.

Although it does not affect you passing the challenge, you really should delete the following line from your code:

rgb (255, )

Also, surrounding your entire code with those <p> and </p> was not necessary either and can be deleted.


#3

It worked. I got so confused about that answer that I saw posted in this forum. Thank you so much for sharing your expertise, Randell. Otherwise, I would still be confused and staring at my screen. Have a wonderful day!