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

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 :)