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 trial

HTML

David Collins
PLUS
David Collins
Courses Plus Student 2,598 Points

How to link a file

I have a picture file on my computer and there some pictures of flowers in it, I would like to link one of these picture to the browser, for my practice page How would I link the picture to the browser so I can display it on my practice page? Some of the element that I think I'm supposed use are (a) (image) (link) the attribute (href="") I can't seem to figure it out. I haven't got this far yet but can documents be done the same way?

2 Answers

if i have understood question right what you want to do is show image as a hyperlink . i would suggest " <a href="example.html><img src="path of the image"/></a> "

David Collins
PLUS
David Collins
Courses Plus Student 2,598 Points

The hyperlink was not what I was looking for but it did kind point me in the right direction. What was actually looking for was the file name, now I understand how works Thank you Rakesh for point me in the right direction

you're welcome :)