How to add and link image to other page in hTML

Ads by Google
Adding and Linking an image in html

This is our third step towards a web development course. Starting with HTML is like making a skeleton of the website. We will discuss about the linking of an image in a website to the other website or web page.

HTML Utilize the <img> element as well as the <a> tag with the href property to use an image as a link in HTML. The <img> element is used to include an image in a web page, whereas the <a> tag is used to include a link.

Add the picture’s URL to the src property of the image element. Include the height and breadth as well.

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Image as link</title>
   </head>
   <body>
      The following image works as a link:<br>
      <a href="https://www.techinfohelp.com/">
         <img alt="Qries" src="https://www.techinfohelp.com/wp-content/uploads/2021/12/Boilerplate-Of-HTML-web-development.jpg"
         width=150" height="70">
      </a>
   </body>
</html>

Top 5 programming languages for your

Learn about metatag and head in html


Ads by Google

Leave a Comment

Your email address will not be published. Required fields are marked *

Tech Info

Share
Share
WhatsApp
More