Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make image clickable

<div className="col-lg-3 col-md-3">
    <li>
      <img src='https://i.imgur.com/fe0T4nw.png' onClick="https://arizonaatwork.com" />
    </li>
</div>

In my project I am importing an image and on the onclick I want the image to take them to a URL. How can I get this done?

like image 904
Ray Roman Avatar asked Sep 18 '25 19:09

Ray Roman


1 Answers

You can use a tag:

<li><a href='https://arizonaatwork.com'><img src='https://i.imgur.com/fe0T4nw.png'/></a></li>
like image 132
Eyzi Avatar answered Sep 21 '25 10:09

Eyzi