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

0 points
Submitted by MinusPlus
about 9 years

Why does my href attribute not work:

   <!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>About Me</title>
    </head>
    <body>
        <img src="http://s3.amazonaws.com/codecademy-blog/assets/46838757.png"/>
        <p>We're Codecademy! We're here to help you learn to code.</p><br/><br/>
        <div>
            <a href='https://twitter.com/codecademy'> Visit us on <span>Twitter</span></a>	
        </div>
    </body>
</html>

So, my button is working, but when I want to go on, it tells me that there would be no href attribute in my . Please Help

Answer 54e36c719113cb638b000098

1 vote

Permalink

Hi i think it is becuase you used aprostophe on you code <a href='https://twitter.com/codecademy'> instead of quotation marks. so the code should be <a href="https://twitter.com/codecademy"> Visit us on <span>Twitter</span></a> Hope that helps.

points
Submitted by Asinath
about 9 years

4 comments

MinusPlus about 9 years

Sry Dude, doesn’t work.

MinusPlus about 9 years

Got it, this part doesn’t allow the span attribute.

stetim94 about 9 years

adding extra code doesn’t always work, there are codebits for that. i agree with asinath as well, a apostrophe might work, but can cause you problems during this track

i just add the too my text and the link works but the stupid code software still says that the href atribute it’s missing