Pseudo-classes selector #18


#1

Hello
I have a problem with this exercise concerning the color of the a first-child.
I can't see my mistake.
Thanlk you for your help.


https://www.codecademy.com/fr/courses/web-beginner-fr-FR-tro8p/3/5?curriculum_id=5355c3c3516bcbd91200000b


Oups, merci de réessayer. Avez-vous bien affecté à votre premier la couleur #CDBE70?


**index html** 

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Résultat</title>
	</head>
	<body> 
	<li><a href="http://www.designbyhumans.com/shop/24x36-geek-art-prints">Design by humans</a></li>
	<li><a href="http://www.artsandartists.org/">Arts et artistes</a></li>
	<li><a href="http://www.digitalartserved.com/">Digital art</a></li>
		
	</body>
</html>


**stylesheet.css**

 
a: first-child {
    color: #CDBE70;
}
a: nth-child(3) {
    color: #FFC125;
}
a: hover {
    text-decoration: none;
}


#2

you can't have a spacing around the colon, it should be a:first-child, same for the other 2


#3

Ok.
An other stupid syntax error.
Thanks a lot.


#6

Are you getting another error ?
Please paste in your code.


#7

i guess he meant he made another stupid syntax error, and is resolved now