Answer:
The Correct syntax for inserting an image as hyperlink is given in explanation section
Explanation:
To make an image act as a hyperlink, place the image element within the HTML anchor "<a></a>" element.
The syntax of inserting image hyperlink in XHTML is given below.
<a href = "link_that_can_be_accessible"><img src="source of image" alt="display name if image not shown in the browser" border="0"/></a>
for example lets insert image as hyperlink
<a href="ajax.html"><img src="logo.gif" alt="AJAX" border="0" /></a>
The default appearance is a blue border around the image. Specifying border="0" removes the border around the image.
if you want to insert image from another folder then the image hyperlink looks like this:
<a href="ajax.html"><img src="/images/html5/logo.gif" alt="AJAX" border="0" /></a>
If you want to insert image from another server then image hyper link looks like this:
<a href="ajax.html"><img src="https://www.myExample.com/images/html5/logo.gif" alt="AJAX" border="0" /></a>