I am not very knowledgeable in html, I want to open a link that is stored in a variable but without success.
<div class="csgo-item--inspectLink">
<img src="static/img/inspect.png" href="{{item.inspect}}" target="_blank"style="width:16px;">
</div>
The link is in the variable item.inspect if I put it to show what it has inside the variable it shows the right link but I do not know how to do it when I click on the image open the link in a new tab.
I do not know if it's important but here's the css:
.csgo-item--inspectLink{
position: absolute;
top: 5px; left: 5px;
padding: 1px 3px;
z-index: 2;
}