Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to turn an Image into a Link in HTML ?

  • Difficulty Level : Easy
  • Last Updated : 21 Sep, 2021

Problem Statement: The purpose of this article is to turn an HTML image into a webpage link.

Approach: The HTML <a> type attribute is used to create a hyperlink to web pages, files, locations on the same page. We can make elements like images into links by nesting them within an <a> element. It defines a hyperlink that is used to link from one page to another. If the <a> tag has no href attribute, then it will be only a placeholder for a hyperlink.

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.


<a href=""></a>

Note: The href attribute is used to specify the destination address of the link.



<!DOCTYPE html>
<body style="text-align: center;">
        Click on GeeksforGeeks logo to
        Redirect into
    <a href="">
        <img src=
             alt="Click to visit">


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!