This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Magnetar
over 8 years

Having issues with links

20/09/15

Hi I have received the following message twice this evening:

“Oops, try again. Make sure you put some text for your link between your tags! “

despite having checked & double-checked my code.

I received this message on the following course elements:

  • CSS: An Overview - Links and text decoration (26/26)
  • Design a Button for Your Website - Adding the link

Have checked and ran code within different browsers (using my ‘Notepad++’ editor). No problems encountered.

Grateful for any further advice & assistance please. Many thanks in advance.

Magnetar.

Answer 55ffb8f29113cb6fc80002e0

0 votes

Permalink

check here how to format your code. Your code is currently not visible. if you update your question please leave a comment so i get a notification.

Can i see your full html code? It is the only way i can tell why the code won’t pass the exercise.

points
Submitted by stetim94
over 8 years

Answer 55ffeb0486f55267b40001e9

0 votes

Permalink

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

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

img {
    height:100px;
    width:300px;
    border: 1px solid #4682b4;
}
a   {
   text-decoration:none;
   colour:#cc0000;
}
points
Submitted by Magnetar
over 8 years

Answer 55ffeb1195e378b6d2000033

0 votes

Permalink

<!DOCTYPE html>
<html>
    <head>
        <title>Result</title>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    </head>
    <body>
    
    <h1>Some Examples</h1>
    
    <img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRun94Du5JjxzZenWrQD1xRr1ZmBMB2dggslGtu58hm2bEJO-n2lg" />
    
    <p>Some example text will sit here.</p>
    
    <a href="http://coign.org/">Welcome to the Coign!</a>
    </body>
</html>
points
Submitted by Magnetar
over 8 years

Answer 55ffeb7be39efee5550001a0

0 votes

Permalink

Hi stetim

Code posted as request. Have also noticed some other ppl having same issues with this section of the course, so it could just be the site.

Many thanks for help in advance

Best regards

Magnetar

points
Submitted by Magnetar
over 8 years

Answer 55fffb51e39efe2bee00068c

0 votes

Permalink

correct me if am wrong, but color (without the letter u) is american, and colour is british. The web “programming” standards are american. Look at this section of your code:

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

you have colour, it should be color. And yes, that is what causes the error. Errors here are written by the creator of the course, and don’t always cover all corner cases.

points
Submitted by stetim94
over 8 years

Answer 5600144351b8879939000100

0 votes

Permalink

Hi stetim94 Thanks for response & for pointing that minor error out. Have amended last line of code in css. Doesn’t make any difference, unfortunately. Still getting the same msg: “ Oops, try again. Did you remember to put some link text between your tags? You can’t leave them empty!“ for the course: “CSS: An Overview - Links and text decoration(26/26). Only difference now is that correct link colour (using “color:#cc0000;” in css), appears.

According to error above, there is an issue with the html:

<a href="http://coign.org/">Welcome to the Coign!</a>

Anyway thanks once again for responding. Much appreciated! Magnetar.

points
Submitted by Magnetar
over 8 years

7 comments

stetim94 over 8 years

Hm… weird, it should be passing, the code is fine. Have you tried a different browser?

Magnetar over 8 years

Yeah, ran the code within IE, Edge, Chrome & Firefox from my Notepad++ editor. All okay. Such is life… Thanks for help earlier. Much appreciated.

Best regards, - Magnetar.

stetim94 over 8 years

but that is from notepad++, have you tried the exercise in different browsers?

Magnetar over 8 years

Yes, - viewed the results of the code (opening html file directly) in IE, Chrome, Firefox & Microsoft Edge. No problem with this, nor with continuing with follow-on sections of the course. Cheers, Magnetar.

stetim94 over 8 years

That is not what i meant, have you tried the exercise in a different browser? Sometimes you hit a glitch, if you switch browser and try the exercise, it might work

Magnetar over 8 years

Afternoon, stetim94. Thanks for help with this. Seems like it was an exercise<->browser issue after all. Gr8ful for your help with this. Magnetar. :-D :-)

stetim94 over 8 years

very good you resolved it. You’re most welcome. Now you can complete all exercises!