troubleshooting Question

Add hyperlink to image

Avatar of vsllc
vsllc asked on
Web Languages and StandardsImages and PhotosScripting Languages
5 Comments1 Solution886 ViewsLast Modified:
This is probably a very basic questions, but I'm have very little knowledge of coding.  I have an image on my website, code below, and I want to make the entire image a hyperlink that when clicked will go to a new web page.  How do I do this?

<img src="images/demo/test.png" border="0" alt="Test" width="220" height="454" />

I've tried this but it pushes the images below it down a couple of pixels from how they displayed without hyperlink.

<p><a href="http://www.yahoo.com"> <img src="images/demo/test.png" border="0" alt="Test" width="220" height="454" /></a></p>

Thanks.
ASKER CERTIFIED SOLUTION
Ian Meredith

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros