You can insert a hyperlink into a JPEG image on your website if you want to link the image to another location. Hyperlink is the HTML (hypertext markup language) name for links to other Web pages and websites. While you do not insert the link directly into the JPEG tag, you enclose the JPEG tag within the hyperlink tag. This allows you to make a link of the whole image. This works with all image types -- not just JPEGs.
- Skill level:
Other People Are Reading
Open your HTML editor, or if you don't have one open your HTML page in Notepad.
Locate the JPEG image code -- for example: <img src="myimage.jpg">.
Add the following before the image tag:
Add after the image tag:
So the complete tag in this example would read:
<a href="location.html"><img src="myimage.jpg"></a>
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for