How to Turn an Image to a Clickable Hyperlink in Browser Using HTML5

You will refer to this article if you want to learn How to Turn an Image to a Clickable Hyperlink in Browser Using HTML5. Here, I’m going to teach how to do this task using HTML5? Let’s start the article.

How to Turn an Image to a Clickable Hyperlink in Browser Using HTML5

How to Turn an Image to a Clickable Hyperlink in Browser Using HTML5

In order to get started, you need to make an index.html file and copy-paste the following code

index.html

<!DOCTYPE html>
<html>

<body style="text-align: center;">
    <h3>
        Click on GeeksforGeeks logo to
        Redirect into geeksforgeeks.org
    </h3>

    <a href="https://geeksforgeeks.org">
        <img src=
"https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png"
            alt="Click to visit geeksforgeeks.org">
    </a>
</body>

</html>

Final Words

I hope this HTML article helps you to learn “How to Turn an Image to a Clickable Hyperlink in Browser Using HTML5”. If you have any doubts about this topic then please let us know via the comment section. We will help you. Share this article with other CSS and HTML developers. Thank You!

Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment