Error. have you Did you remember to set your link's text-decoration to none;?


#1


CSS an Overview. 26 Links and text-decoration


Keep getting this error message Oops, try again. Did you remember to set your link's text-decoration to none;?


HTML

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
		
	  <link type="text/css" rel="stylesheet" href="stylesheet.css"/> 
	</head>
	<body>
	<h1> Heading </h1>
	<p>  How to use selectors </p>
	<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Human_skeleton_front_en.svg/530px-Human_skeleton_front_en.svg.png"/>
	<a href= "http://www.keralatourpackages.com/south_india_tour/south_india_nature_tour.html">Southern India</a>
	</body>
</html>

CSS


<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
		
	  <link type="text/css" rel="stylesheet" href="stylesheet.css"/> 
	</head>
	<body>
	<h1> Heading </h1>
	<p>  How to use selectors </p>
	<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Human_skeleton_front_en.svg/530px-Human_skeleton_front_en.svg.png"/>
	<a href= "http://www.keralatourpackages.com/south_india_tour/south_india_nature_tour.html">Southern India</a>
	</body>
</html>


26. Links and text decoration CSS bug
HTML & CSS - Traducción al Español (América Latina) 21 Enlaces y text-decoration
#2

We'll need to see your CSS code to figure out what's wrong.


#3

I'm getting the same error.

HTML: 
<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"></link>
	</head>
	<body>
	    <h1>anything you want!</h1>
	    <p>any text you like</p>
	    <img src="http://bit.ly/NnVbxt"></img>
	    <a href="https://xkcd.com">ink text</a>
	</body>
</html>

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

The problem also mentions a hint that doesn't appear to me.


#4

Have you read...
https://discuss.codecademy.com/t/26-26-oops-try-again-did-you-remember-to-set-your-links-text-decoration-to-none-yes-i-did/80108/3

and have a look at your
<img src="http://bit.ly/NnVbxt"></img>

please read
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img


Text decoration is not working
Links and text decoration
#5

yeah, I received the same message. did you make you image? then in css type;
a {text-decoration: none;} this should solve the problem it did for me.


#6

Since your code looks fine, I recommend trying it in Firefox or IE. I had to use one of those for this problem, myself.


#7

Tried it on Firefox and it worked, but wouldn't work on Chrome or Safari....... bit limiting that!


#8

Same problem on Chrome, worked fine on Internet Explorer.


#9

I got the same error with my laptop. Switching over to Firefox did the trick but if you are using any live security application(i.e. Avast), you should turn off the "Scan HTTPS Connection" or something doing the similar job to use Firefox properly avoiding the error "your connection is not secure".


#10

I'm having the same exact problem ("oops" + no hint showing). My CSS language is the same as yours.


#11

worked in internet explorer....


#12

same problem here!i copied my code and did this lesson in firefox and then came back to chrome.


#13

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