HTML & CSS- Lesson 26. Links & decorations - Oops, try again. Did you remember to set your link's text-decoration to none;?


#1

HTML code:




Result


Anything you want!


Any text you like in there



Google!

CSS code:
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;
}
a:link{
color: #cc0000;
text-decoration: none;
}

I have tried to proceed past this lesson but I can't get the code to work, I've tried w/ & w/o the link after 'a' and the actual test screen shows that the code works but I keep getting the message :Oops, try again. Did you remember to set your link's text-decoration to none;? and I don't know if it's the code or Codeacademy glitching.


I have a problem with Links and text decoration
#6

HTML code

<!DOCTYPE html>
<html>
	<head>
	    <link type="text/css"; rel="stylesheet"; href="stylesheet.css" />
		<title>Result</title>
	</head>
	<body>
	    <h1>Anything you want!</h1>
	    <p>Any text you like in there</p>
	    <img src="http://bit.ly/NnVbxt" />
	    <a href="www.google.com">Google!</a>
	</body>
</html>

#7

Even after i have written the correct code i.e., setting text-decoration to none, it's still showing "oops, try again. Did you remember to set your link's text-decoration to none;? "


#8

Can any one suggest me the solution for this issue?


#9

A friend of mine found out what was wrong with my code, I accidentally put a '/' after the 'img src' line which messed up my code, it seems to have fixed the code removing it


#11

Use another browser. This seems to be a problem with Google Chrome, so it's best to avoid using it when dealing with text-decoration.


#12

Thanks for your valuable suggestion:). I have tried Internet Explorer too, but still facing same issue :frowning:
my HTML code..




Result


google

CSS code....

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


#13

I am also having this problem and i am unable to move forward.


#14

Yep. Same problem. Did anyone manage to fix it??


#15

I just had this problem. Changed from Chrome to Safari and it worked!


#16

@digitalrunner34318 @zmbezi43 It worked when I use Microsoft Edge. Not so sure about other browsers.


#17

add space between the full colons and none,; it worked with my chrome


#18

Nope, It's not working!


#19

It worked when I changed to IE


#20

Still it's not working:( .I have tried both IE & Chrome:confused: .
Can anyone please help me to fix this issue so that i can move forward with the course


#21

it worked in IE :slight_smile: ....Thanks for your suggestions..
have a gud day.. :slight_smile:


#22

I had the same problem it worked after I used the same code in a different browser (Microsoft Edge)


#23

Yep. That worked for me too! Guess it's safari for the rest of the course...


#24

ok that's great and all. but I'm on a chrombook. so, what now?


#25

I run into the same issue just now, and can confirm when opened on Firefox, it worked fine. Thanks for the suggestion, as i was breaking my eyes looking for an error on my side.