Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Links 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
James Barnett
39,199 Points

You forgot the h in your attribute, it's href.

Thank you James!

Marcus Tisäter
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

When I type <a ref="website.com">Website</a> A link does not come up. Why not?

When I type <a ref="website.com">Website</a> A link does not come up. Why not?

Neill dev
PLUS
Neill dev
Courses Plus Student 23,163 Points

Hey 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
PLUS
Neill dev
Courses Plus Student 23,163 Points

Oh, 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
PLUS
Neill dev
Courses Plus Student 23,163 Points

try this;-)

<a href="#"><Website Link</a>
<a href="http://www.google.com><link to Google</a>
            ```