Use RGB to for colors

Use RGB to for colors
0.0 0

#1

<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)
  }
</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>

Hello people!!!
This is my code so far… But it says it dosn’t work.
ooo the error is in bolt:

Give your h1 element with the text I am red! the color red.
Use rgb for the color red.
Give your h1 element with the text I am orchid! the color orchid.
Use rgb for the color orchid.
Give your h1 element with the text I am blue! the color blue.
Use rgb for the color blue.
Give your h1 element with the text I am sienna! the color sienna.
Use rgb for the color sienna.


#2

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#3

I think you’re just missing semicolons in your class definitions.