English 中文(简体)
HTML - Image Links
  • 时间:2024-09-17

HTML - Image Links


Previous Page Next Page  

We have seen how to create hypertext pnk using text and we also learnt how to use images in our webpages. Now, we will learn how to use images to create hyperpnks.

Example

It s simple to use an image as hyperpnk. We just need to use an image inside hyperpnk at the place of text as shown below −

<!DOCTYPE html>
<html>

   <head>
      <title>Image Hyperpnk Example</title>
   </head>
	
   <body>
      <p>Cpck following pnk</p>
      <a href = "https://www.tutorialspoint.com" target = "_self"> 
         <img src = "/images/logo.png" alt = "Tutorials Point" border = "0"/> 
      </a>
   </body>
	
</html>

This will produce the following result, where you can cpck on the images to reach to the home page of Tutorials Point.