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

0 points
Submitted by Jitin
over 10 years

Im stuck on this question anyone help please

help the link is not working

Answer 528e3262abf821ddab000008

0 votes

Permalink

In the HTML you add a link to the div:

<div>
        <a href="http://google.com/">Google</a>
</div>

On the CSS you add this:

a {
    text-decoration: none;
    color: red;
}
points
Submitted by tony de araujo
over 10 years

7 comments

Jitin over 10 years

i fixed itthanks man

Jitin over 10 years

it was awesome

tony de araujo over 10 years

Great! glad to know.

Jitin over 10 years

are u an real life programmer?

Kmbly16 over 10 years

I did this EXACTLY and I’m still getting an error message: “ Did you remember to give your tag a href attribute?” I am using Safari. Any help would be appreciated! Thanks!

Kmbly16 over 10 years

I did this EXACTLY and I’m still getting an error message: “ Did you remember to give your tag a href attribute?” I am using Safari. Any help would be appreciated! Thanks!

tony de araujo over 10 years

Hi Kmbly16, try a different browser, like Google chrome for example. If you still have problems please post you HTML and CSS code on the “Add an answer “ box so that I can take a look. Good luck.

Answer 529ec9728c1ccccdfd002281

0 votes

Permalink

Thanks @Tony de araujo!

I tried it again in Google chrome and still got the same error message. Please help! Here’s my code. Not sure what’s wrong…

index.html:

<!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=http://www.yahoo.com>Click Here!</a>
        </div>
    </body>
</html>

stylesheet.css:

img {
    display: block;
    height: 100px;
    width: 300px;
    margin: auto;
}

p {
    text-align: center;
    font-family: Garamond, serif;
    font-size: 18px;
}

div {
    height: 50px;
    width: 120px;
    border-color: #6495ED;
    background-color: #BCD2EE;
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    margin: auto;
    text-align: center;
}

a {
    text-decoration: none;
    color: red;
}
points
Submitted by Kmbly16
over 10 years

2 comments

tony de araujo over 10 years

Add quotes to your link like this: Click Here!. After I made the change it passed for me.

Eduardglez1 about 10 years

Thanks I had the same problem and adding Quotes fixed it ( I used the (‘)’s)

Answer 528d82be548c353c04000ed3

-1 votes

Permalink

<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    <title>About Me</title>
</head>
points
Submitted by tony de araujo
over 10 years

5 comments

Jitin over 10 years

so right now im on designing button and i need help on that adding link its not working

tony de araujo over 10 years

What exactly is the error message. Could you paste it here?

Jitin over 10 years

Oops, try again! Did you remember to give your tag a href attribute?

Jitin over 10 years

im stuck this is the error

Jitin over 10 years

i did that