This forum is now read-only. Please use our new forums! Go to forums
Im stuck on this question anyone help please
help the link is not working
Answer 528e3262abf821ddab000008
0 votes
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;
}
Answer 529ec9728c1ccccdfd002281
0 votes
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;
}
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
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>About Me</title>
</head>
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
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
7 comments
i fixed itthanks man
it was awesome
Great! glad to know.
are u an real life programmer?
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!
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!
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.