I have an image and a link under it.

I want to make it so that you can click on the image and the link. As a result of the click, the user follows the same link.

How to do it right?

  1. Wrap around the link image.
  2. Wrap the image and the text under it as one link.

Which option is correct? I am writing on visual studio 2010, asp.net website

    1 answer 1

    The caption to the picture is not required to be a link. I would make an image and link in separate tags:

    <p> <a href="lorem.html"> <img src="images/girl.png" width="189" height="255" alt="lorem"> </a> <a href="lorem.html">Lorem ipsum dolor sit amet...</a> </p> 

    I like it ideologically more. But in principle, both options are correct.

    • And it will not affect SEO, if there are two links in a row? - alexanderdronov
    • Yes it should not. These are not fifty identical sentences in a hidden diva =) - Zelta