Adding link to my button help! :(


#1


Adding the link


after i completed writing the code i get this message. what am i doing wrong? i added the exact code on my stylesheet.css

"Oops, try again. Did you remember to set your link's text-decoration to none;?"


<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>About Me</title>
	</head>
	<body>
		<img src="https://s3.amazonaws.com/codecademy-blog/assets/46838757.png"/>
		<p>We're Codecademy! We're here to help you learn to code.</p><br/><br/>
		<div>
		    <a href="facebook.com">Myspace</a>	
		</div>
	</body>
</html>



img {
	display: block;
	height: 100px;
	width: 300px;
	margin: auto;
}

p {
	text-align: center;
	font-family: Garamond, serif;
	font-size: 18px;
}
div {
    height: 50px; width: 120px; border-color:  #6495ED; background-color: #BCD2EE; 
    border-radius: 5px;
    margin: auto; text-align: center;
    text-decoration: none;
    color: red;
    font-family: Garamond;
}


#2

A link is an anchor element, so we use the a selector.

a {
    text-decoration: none;
    color: ???
}

#3

thanks for the help! i kept looking over my code to see if i had missed a semicolon and just completely missed it since i was focusing on the error message!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.