Search code examples
htmlcssimagesvgclickable-image

How to make an image clickable


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


Solution

  • 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