26. Links and decoration


#1

Hi guys. I know there are many threads about this topic, but even after checking each one I have been stuck on this for days and would really like to move forward. My error message asks if I remembered to set my link decoration to none;. Some people have said it might be a glitch, but I have tried on all browsers and different computers. PLEASE HELP :frowning: This is my code:

    <!DOCTYPE html>
<html>
	<head>
	    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
	    <h1>Cute Kitten Overload</h1>
	        <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR8QaxaxhAPM9fDZ_6e3UTrmBRrTHt5VSg5TMDbZOH5F5QOiaI9">
            <a href="https://www.google.com">cmon</a>
	    <p>fattie</p>
	</body>
</html>

h1 {
font-family: Verdana, Sans-serif;
color:#576D94;

}
p {
font-size:18px;
color:#4A4943;
font-family:Garamond, Serif;
}

img {
height:100px;
width:300px;
border: 1px solid #4682b4;
}

img {
border: 1px solid #4682b4;
}

link {
text-decoration: none; color:#cc0000;
}

body {
text-decoration: none;
}


#2

also different computers are showing different errors... the other one asks if i remembered to put link text between my a tags.


#3

maybe instead of "link" it means "a" like the link text.

--EDIT--

So in the CSS section

link {
 text-decoration: none; color:#cc0000;
}

change the "link" to "a". Like so.

a {
 text-decoration: none; color:#cc0000;
}

#4

you are a saint! now i can get back to learning. thank you so much, i hope you enjoy your day knowing you've really helped me out!!


#5

link (anchor) is just a word we use describe: <a></a>, the css selector is equal to the opening tag with <, >. Many people are fooled by this.