Lesson 26. Links and Text Decoration


#1


https://www.codecademy.com/courses/web-beginner-en-TlhFi/4/5?curriculum_id=50579fb998b470000202dc8b

did you remember to set your link's color to ##cc0000;?


HTML Code
<!DOCTYPE html>
<html>
	<head>
	<link type="text/css" rel="stylesheet" href="stylesheet.css"</>
		<title>Result</title>
		<h1>Welcome to the World of Coding!</h2>
		<p>Here is what I have learned so far in this course on Codeacademy.com!</p>
		<a ref="http://google.com">Google</a>
		<img src="http://bit.ly/NnVbxt"/>
	</head>
	<body></body>
</html>

CSS Code

{type="text/css" rel="stylesheet" ref="stylesheet.css"}
p {
    font-family: Garamond, serif;
}
h1 {
    font-family: Verdana, sans-serif; 
    color: #576D94;
}
p {
    font-size: 18px;
    color: #4A4943
}
img {
    height:100px;
    width: 300px;
    border: 1px solid;
    color: #4682b4
    }
a ref { 
    text-decoration: none;
    color: #cc0000;
    }

What am i doing wrong? What did i forget to add or take out? Thanks for the help in advance!


#2

your css selector (a ref) is wrong. for two reasons, in the html code, the attribute of <a></a> should be href (hyperlink reference), ref is not existing, but neither ref of href belongs in css, it is attribute for html code, not css code


#3

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