0

I want to be able to paste a link to users directing them to my home page but instead of it being just a link I want to paste and share the logo pic so when users click on the logo pic they are taken to my home page - I'm just trying to make my links look good is there a way to do this?

I am limited to basic HTML (still learning the ropes) so please be gentle :)

Odiin
  • 150
  • 16
robert
  • 21
  • 5
  • 1
    Welcome to SO! This is where users usually encourage you to do more research, as [this question is answered before](https://stackoverflow.com/questions/17561759/how-do-you-make-an-image-into-a-link-in-html) – Odiin Apr 06 '21 at 17:19
  • 1
    sorry Odin but it doesn't answer my question. My question is about copying a pic with a link on it and then pasting it any were i choose so users can click the pic and visit my web page. – robert Apr 06 '21 at 21:20

2 Answers2

3

As basic as it can get with HTML:

<a href="link-url-here">
    <img src="image-url-here">
</a>

Here's a working example.

The picture in this fiddle can be selected, copied then pasted to a lot of places i.e. an email body. But please note that many places probably won't support the hyperlink functionality that you're looking for. And some will (I just tested successfully with Gmail)

And welcome to Stack Overflow

Odiin
  • 150
  • 16
  • hi odin ur html code works (thanks) but how do i copy paste it for users to use? – robert Apr 06 '21 at 21:12
  • Lovely. Not quite sure what you mean by "copy paste it for users to use". I would probably need a more specific use case to help you with that. – Odiin Apr 06 '21 at 21:16
  • it works the same way you copy and paste a link i just want the link to be a picture – robert Apr 06 '21 at 21:28
  • I updated my answer. Please let me know if I hit it – Odiin Apr 06 '21 at 22:17
  • 1
    thanks odin that worked a treat i used it in messenger which is were i do most of my work and it worked great ur a star :) THANKS for your help – robert Apr 07 '21 at 06:34
  • i was premature in my response Odin but i was right saying ur link worked but as soon as i remove the www from my link i run into problems - i can copy/paste the image no bother but when i click it all i get is a picture of the link - here's the code I'm using -

    – robert Apr 07 '21 at 07:57
  • No problem, just include it ``` ``` – Odiin Apr 07 '21 at 09:08
1
<a href="link to your homepage"><img src="https://link-to-image.com"/></a>

Something like this?

Luk_9900
  • 23
  • 3