i don’t know why it is not working. can somebody help.
.red-text {
color: rgb(225, 0, 0);
}
.orchid-text {
color: rgb(218, 112, 214);
}
.sienna-text {
color: rgb(160, 82, 45);
}
.blue-text {
color: rgb(0, 0, 225);
}
I am red!
I am orchid!
I am sienna!
I am blue!
<style>
.red-text {
color: rgb(225, 0, 0);
}
.orchid-text {
color: rgb(218, 112, 214);
}
.sienna-text {
color: rgb(160, 82, 45);
}
.blue-text {
color: rgb(0, 0, 225);
}
</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>
This code perfectly worked in codepen Editor .
Check This Website : https://codepen.io/
but it’s not working
it’s continuously telling me to:
Your
h1
element with the text
I am red!
should have the
color
red. You should use
rgb
for the color red. Your
h1
element with the text
I am blue!
should have the
color
blue. You should use
rgb
for the color blue.
I am not change anything simply cut your code and paste
1 Like
Hey @Anshaj22 !
Here is the link to the challenge
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
Make sure to check the values for blue and red. You have to follow the instructions carefully and copy those values that were provided in the challenge.
1 Like
As said, you do not have the correct values. 225
is not the max value for color in rgb 255
is.
There is not any problem in your current code but you have to read carefully your instruction. Check again one letter can be a distruction.