CSS Selectors: lesson 18 "STUCK" Oops, try again. Make sure you put some text between your <a></a> tags


#1

Hi Everyone
I'm getting this message :"Oops, try again. Make sure you put some text between your tags"
Here's my HTML code.

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<!--Add your HTML below!-->
	<ol>	
		<li><a href="http://www.jw.org">JW.ORG<a/></li>
		<li><a href="http://www.ebay.com">EBAY.COM<a/></li>
		<li><a href="http://www.dom.com">DOM.COM<a/></li>
	</ol>
	</body>
</html>

This is my CSS,

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

Can someone help?
Thanks


#2

your link closing tags seem a bit off:

<a/>

the slash is at the wrong place. Oh, and all your links are first child of lists tags (its parent <li></li>), which will not cause an error, but there is not a:nth-child(3)


#3

Thank you for our help. Little details are everything in coding.


#4

duuuuuuuuuuudeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee thanksssss i was stuck for 1 monh on this