Link Code

HTML Image Link Code

Wrap an image in a link tag to make the whole picture clickable.

Live Tool
image-link.html Live

          
Preview

1How To Use

Follow these steps — no coding experience needed.

  1. Add the link URLWhere should visitors go when they click the image?
  2. Add the image URLAny hosted image works.
  3. Copy the HTMLThe whole image becomes one clickable link.

2Example Output

What this code looks like once it's on a real page.

Product thumbnail

3Browser Compatibility

BrowserSupportNotes
Chrome✓ SupportedFull support
Firefox✓ SupportedFull support
Safari✓ SupportedFull support
Edge✓ SupportedFull support
Opera✓ SupportedFull support
Mobile browsers✓ SupportedFull support, iOS & Android

Supported in every current browser — Chrome, Firefox, Safari, Edge and Opera all render this identically, on both desktop and mobile.

Related Pages

More tools that pair naturally with this one.