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 trialRandall Feinberg
Courses Plus Student 1,495 PointsLinks not working
When i put
<a ref="website.com">Website</a>
a link doesn't show up. Just the word Website. When I add <p></p> on either side of Website it shows up as a link. Is this a change in html5 or is something else going on?
_Randall
7 Answers
James Barnett
39,199 PointsYou forgot the h in your attribute, it's href
.
Marcus Tisäter
4,886 Points ```html
<a href="#path"> Website </a>
```
You really need to specify you're question. I'ts imposible to know what you want to do
Randall Feinberg
Courses Plus Student 1,495 PointsWhen I type <a ref="website.com">Website</a> A link does not come up. Why not?
Randall Feinberg
Courses Plus Student 1,495 PointsWhen I type <a ref="website.com">Website</a> A link does not come up. Why not?
Neill dev
Courses Plus Student 23,163 PointsHey Randall,
If you paste the below code into your text editor and then open the html file in a browser you will find a link formed using the words 'Website link' (likely to be underlined and blue'). If you hover over the link and check the bottom left corner of your browser you can see where it points to, in this case it will be #.
From there you can replace your desired data i.e replace the words 'Website link' in the html file with 'Link to Google'.
Then replace the # between the quotes with the url to google: http://www.google.com
You will then have a link to google that is clickable in the browser.
<a href="#">Website link</a>
<a href="http://www.google.com">Link to Google</a>
Hope that helps, don't worry a few more videos and all will become clear.
Cheers Neill
Neill dev
Courses Plus Student 23,163 PointsOh, sorry didnt show the code, Paste this without the quotes
"<a href="#>Website link</a>"
Should look like this "<a href="http://www.google.com>link to Google</a>"
Neill dev
Courses Plus Student 23,163 Pointstry this;-)
<a href="#"><Website Link</a>
<a href="http://www.google.com><link to Google</a>
```
Randall Feinberg
Courses Plus Student 1,495 PointsRandall Feinberg
Courses Plus Student 1,495 PointsThank you James!