26. Links and text decoration

In this exercise you’re supposed to add a link into HTML and then customise it. I did as the instructions told me to, and I have checked several times whether I have any errors in the code. When I try to submit the code it says “Oops, try again. Did you remember to set your link’s text-decoration to none;?” Could someone please tell me what is wrong with my code?

Here’s my HTML:

<body><h1>This page</h1>

<p>is my own
</p>
<img src="#" />
<a href="http://google.com">Link text</a>
</body>

And the CSS:
p {
font-size:18px;
color: #4a4943;
font-family:Garamond, serif;
}
h1 {
font-family:Verdana, sans-serif;
color:#576D94;
}
img {
height:100px;
width:300px;
border: 1px solid #4682b4;
}
a {
text-decoration:none;
color:#cc0000;
}

I’m getting the exact same error. It appears to be a bug in the lesson. It’s frustrating because I can’t move past it and I’d like to keep going.

FWIW, here’s my CSS;

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

When I look at the result, it’s exactly as it should be, red text with no underline.

iam stuck in this i have tried so many times but it is not working i have done exactly like you have done it

Well, as it turns out, this exercise is not the only one having this kind of problem… I continued the course and faced similar problems: the code seems to be okay and correct but I still get the ‘try again’ message.

I am also getting the same error and couldn’t figure out what was going on. I thought that maybe I coded something incorrectly earlier and it was stopping me due to that. Glad I’m not the only one with this issue.

Considering that this seems to be a recent problem (i.e., today) perhaps something changed recently to break this. What do we need to do to report the problem? There was no “Report a bug” link in the lesson.

So, I just tried it in firefox and it accepted it and let me move forward. Give that a try or if that doesn’t work try IE or… Opera or something. Good luck!!

The same happened here. I logged into it on another machine and it worked,so it appears that logging out then back in will get it working again.

1 Like

can anyone who has pro ask for the live help on this section from the advisers.

I’m having the same issue, and I can’t move one without completing this :frowning:

Any updates on the glitch? Still saying I need to fix my text-decoration even though it’s perfect

I had the same issue and tried what cheboludo1 suggested going into another browser and it worked for me as well. I tried also logging out and then back in on Chrome and it still doesn’t work.

Same problem using Chrome. Same solution: it worked in Safari.

I’ve reported it to the advisers - no answer yet.

I have the same problem :
Oops, try again. Did you remember to set your link’s text-decoration to none;?

But the code it’s ok.
It’s sad to see that there are bugs from lesson to lesson.
I had the same problem at the last lesson.

Thank you

i am stuck in link and text decoration part every time i am doing it correctly it show the result is wrong

Same error here, too!

same error ,too… :frowning:

They need to fix this :expressionless:

Logged out, (shut window) reopened codeacademy in a new tab, and lo and behold… my lesson 26 got demoted back to lesson 4… frustrating, but if I get past the glich in links and text decoration, i will be happy.

+1 guys! The same situation! i even tried to find the solution on the internet and also tried many different variants suggested there, but i cant go foward without accepting this lesson. (26) I strongly believe that administration of the project will pay attention on this and well be able to continue!

1 Like