What's wrong with my code?


#1

Apparently it won't let me pass, even though I think I have the right code. Any help?

Here's my code:

p:first-child(1) {
color:red;
font-family: Cursive
}
p:second-child(2) {
font-family:Tahoma;
}
p:third-child(3) {
color:#CC0000;
}
p:fourth-child(4) {
color:#00FF00;
}
p:fifth-child:(5) {
font-size:22px;
}


#3

no, you do not have the right code. the Pseudo-class you look for is nth-child, example: (general syntax)

selector:nth-child(x){
  property: value;
}

the selector in this case is p, x should be a number. Then there are two special ones:

p:first-child
p:last-child

they do not require a number. second-child, third-child do not exist