How to Add a Clickable Image in HTML Page

 


Using HTML to create clickable images that can lead to any website that you specify.





Introduction


In this post we will learn how to create a clickable image , that is an image in your html page that when clicked, will lead to any website page.


Steps to create a clickable Image


1). First write the URL link address inside the <a> hyperlink .


2). Inside this hyperlink, wrap the image source inside this hyperlink as shown below in the source code . 


3). Now, try clicking anywhere on the image in the preview window and lo and behold! You are forwarded to the specified web page that you had mentioned in your hyperlink.


You may view the preview image  here. To view the Image in Full View in my code editor, check out this  IMAGE LINK to read the  in a CODE  editor 
If  I write the link to my home page of my blog website in the hyperlink as shown in the code below,  by linking in the image, you will be forwarded to the home page of my blog page at blogger. But for this, you need to first view my image by clicking on the image link as shown above, and then test it out. 


You can mention any url link here in the code to lead the reader to the respective site by clicking anywhere on the image. So, after reading this post, I want you to actually test it out by following my instructions here and then do a different image in your code editor and try to forward your readers to another of your site or web page etc. 




Code






<h1>CLICKABLE IMAGE LINK</h1>

<a href="https://meerateachestech.blogspot.com">
    <img src="https://i.imgur.com/vRJjYek.png" alt="clickable image">
</a>





Conclusion

Now you know how to create a clickable image that when clicked can lead to your specified web page! This is so useful when you want to send people to your landing page by using interesting clickable images . 




Comments

Popular Posts

Build A Random Quote Machine in React

A Simple Guide to Promises in JavaScript ES6

Welcome to my first Blog Post

Top Free Online Websites to Learn Coding

Beginner's Guide On For Loop in Python

Build A Calculator in React

How to remember code in your learning phase