Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJon McDowell
376 Pointshref value problem
Here is my code
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheet" href="css/noramlize.css" type="text/css" media="screen"> </head>
following the instructions on how to write the href portion of the link element yet I am getting it wrong some how. Any suggestions on what I am missing?
5 Answers
Eric Burdett
5,963 PointsHey Jon - there might be a few issues here. It looks like your code, in it's entirety, didn't post, but maybe this might help... I'm assuming that you're trying to add a link to another website, or possibly a link to a page within the website. If that's the case, the first thing you'll want to do is make sure that that link is being created within the <body></body>
element. Inside the body you're going to create a link using <a></a>
, and make sure you're surrounding your href="url goes here" with quotations. The link that you'll see on the website itself is going to sit in the middle of <a> </a>
. For instance, <a href="www.somewebsite.com">Some Website</a>
would show "Some Website" in blue, underlined, on your website and when you click it it would take you to that url.
One other thing to note though, maybe you did put everything correctly, and it looks like the example I gave, but in your post, Smells like Bakin' Cupcake Company would need to be moved. If this is the way it looks in your code, I would delete that, (I'm assuming that's your page title) and put that inside the <head></head>
element wrapped in the title tag <title>Smells Like Bakin' Cupcake Company</title>
. That might actually be what's causing the code check to error out.
reuben east
2,403 PointsThis is an example example link
This might work I am new at this [example] (#)
They use this alot <a href="#">??</a>
Maybe this will print right
Jon McDowell
376 PointsThanks for the replies gentlemen, I decided to take a break for a bit I will give them a try and get back to you!
reuben east
2,403 Pointsread this about links -- http://www.w3schools.com/html/html_links.asp
Jon McDowell
376 PointsThanks Reuben!