18 Links


#1

Whats wrong with my code? It comes up with a error message that says: Oops, try again. Do your <a> tags all have href attributes?

HTML Code

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<!--Add your HTML below!-->
		<a href="https://www.newegg.com">Buy Computer Parts!</a> 
		<a href="https://www.youtube.com">Subscribe!</a>
		<a href="https://www.yahoo.com">Check your mail!</a>
	</body>
</html>

CSS Code

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

#2

If you want to select element inside the body, make sure you get the spacing right, the space should be before the colon, not after:

body :first-child

#4

@mzahoor, posting full answers without any explanation is not according to the guidelines, keep that in mind next time. Plus, the issue was already resolved, you can also select the links as elements inside the body