18. need help


#1

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
	<a href="google.com">google
	</a>
	<a href="ebay.com">ebay
	</a>
	<a href="codeacademy.com">codeacademy
	</a>
		
	</body>
</html>

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



Replace this line with your code.


#3

Please paste in your code using this format


#4

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

its not letting me post my html page


#5

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
	<a href="Google.cm">google
	</a>
	<a href="Ebay.co">ebay
	</a>
	<a href="Codeacademy.co">codeacademy
	</a>
		
	</body>
</html>

#6

and they are all .com so that's not the problem


#7

You need a space between a and :
a :nth-child(3)

If you are still receiving an error let me know what it is


#8

did you remember to set your first to the color #CDBE70 is the error


#9

No (3) is the third, so you will have to change 3 to the correct no..
I think you can work this out :slight_smile:


#10

yup I switched them! thank you!


#11

You're welcome :green_heart:

Happy Learning :slightly_smiling:
Happy coding !

What inspired you to learn programming/coding?
Join the discussion


#12

Did you get it to work?