I need help changing the color of the website. but it keeps saying i haven't put the number in to change the color


#1


/*Add your CSS below!*/
<a> color#cc0000;text-decoration</a>

<Oops, try again. Whoops! It looks like your 'a' selector doesn't have the color #cc0000.>


#2

<a style="color#cc0000;"></a>
:slight_smile:


#3

it said it is wrong....


#4

Oh,oops.
<a style="color:#cc0000;"></a>
Need to add a colon between property and value.


#5

it keep saying....

Oops, try again. Whoops! It looks like your 'a' selector doesn't have the color #cc0000.


#6

https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/3/3?curriculum_id=50579fb998b470000202dc8b

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


#7

Ok, so it doesn't want an inline style. It wants a seperate css rule.

So, remove the inline styling in yout HTML file.

In a css file you need to

a {
  color: <YourColorHere>;
  text-decoration: <YourTextDecorationHere>;
}

#8

keeps saying it is wrong.. Do you think it could be a BUG? which i doubt it but it could be...

Oops, try again. Add a semicolon after "none".

/*a {
color: <#cc0000;>
text-decoration: ;
}*/


#9

You don't need the /* */ around your styling. (If you were trying to format your code you will want to put three backticks before the code and three backticks after the code.)

And the brackets were not meant to be taken literally :slight_smile: .

a {
  color: #cc0000;
  text-decoration: none;
}

I assume that they are wanting text-decoration to be none.


#10

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