I have been trying to get this code for about 45 minutes I have looked through the forums for help and found none that helped me.
My HTML Code:
<!DOCTYPE html>
<html>
<head>
<title>Result</title>
<link type ='text/css' href="stylesheet.css" rel='stylesheet'>
</head>
<body>
<h1>Stuff</h1>
<p>More stuff</p>
<a href="url">Link text</a>
<img src="http://bit.ly/NnVbxt">
</body>
</html>
My 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 {
text-decoration: none;
color: #cc0000;
}
The error:
Oops, try again. Did you remember to set your link's text-decoration to none;?
As you can see I did set my text-decoration to none and still cannot get the code to submit without this error. Thanks for any help you can give!
can you please also post the instructions?
Links and text decoration
Great work! We’re almost there.
Instructions
Add a link to your HTML page using Link text tags (check the Hint if you need a reminder). You can link to any webpage.
On the CSS tab, change your link’s text-decoration to none and its color to #cc0000 .
You’re done! Revel in the glory of your newfound CSS knowledge for a moment, then head on to the project.
did you check the hint?
also, maybe it has to be a legit url.
try that.
i think this will help:
you wrote: a{
…
…
maybe try: link text{
…
…
hope it helps
I have also experienced this problem just tried using different names like link text or link and it still is giving me the error
So using link text did nothing and using an legit url did nothing to change its error message
also there is no hint button
ariej
April 11, 2018, 1:01am
#10
Do you use Chrome as browser?
yes i do use chrome as my browser
ariej
April 11, 2018, 1:02am
#12
Try a different browser. I remember chrome can give issues at certain parts
Hi @samsung03m , @forcercn
I’m just guessing the lesson you’re referring to (as there’s no link provided in the topic), that particular track you’re facing problem is not maintained anymore, therefore, it’s buggy at times. However, if you still want to complete that lesson, you may try changing your browser using Firefox as per the answer I suggested in this topic here:
Hi @h.murphy , @daxellwells , @digitalrockstar61271 ,
If you feel like you have triple checked your code and it’s correct, what I would suggest is try changing the browser.
Firefox worked best for me. There’s something buggy in this track that doesn’t work in Chrome, Opera or IE, I switched to Firefox and the problem resolved itself, with the condition make sure your answer is correct and following the course’s instructions.
Cheers
It seemed to work for others as well.
Nonetheless, I do recommend to try out the latest tracks for learning HTML and CSS here:
https://www.codecademy.com/learn/learn-html
https://www.codecademy.com/learn/learn-css
These are the latest ones and recently published tracks.
Happy Coding!
system
closed
April 18, 2018, 10:28am
#14
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.