1

Hello, I would like to make 2 of my images clickable: The one in my header (Kurium Header Logo) And the one in my footer (Kurium Footer Logo)

Here is my code:

HTML : https://bin.readthedocs.fr/ttilty.txt

CSS : https://bin.readthedocs.fr/ladvic.txt

If someone knows how I can do it please I'm interested

2 Answers2

0

Just wrap an anchor around them

<a href="#"><img class="header-logo" src="img/logo.svg" alt="Kurium Header Logo" href="index.html"></a>
spacemonki
  • 291
  • 2
  • 13
0

If you want to turn any element into a hyper link you can wrap your element or string in between the a anchor tag element, inside the first a opening tag add an attribute href to the url you desire. Like so

<a href="www.url.com">  
    <img src={img.png} />
</a>

For a more detailed explanation check out

https://www.w3schools.com/tags/att_href.asp

CleverOscar
  • 115
  • 1
  • 2
  • 9
  • Thanks for the help, your method is shorter I keep it aside it can be cool too :p –  Apr 20 '21 at 06:29