Hi, I did this for e-commerce project, see below image: [image: Inline afbeelding 1] Instead of making the image + product title text link to the same productpage, I wrapped both inside the 'a' element, and did not provide the image of an alt text since the product title is already the link text in this case. In code: <a href="url"> <div> <img src="url" alt=""> </div> <div> <h3>Inoar BotoHair keratine behandeling 3 x 250 ML</h3> </div> </a> Vriendelijke groet, Willem-Siebe Spoelstra E-mail: info@spoelstra.ws Blog: spoelstra.ws 2015-03-23 23:17 GMT+01:00 К Александр <sasha.dstu@gmail.com>: > Hello. > > http://www.w3.org/TR/html5/text-level-semantics.html#the-a-element > >> "The a >> <http://www.w3.org/TR/html5/text-level-semantics.html#the-a-element> element >> may be wrapped around entire paragraphs, lists, tables, and so forth, even >> entire sections, so long as there is no interactive content within (e.g. >> buttons or other links)" > > > > Is putting a div inside an anchor ever correct? > > > Thanks. >
(image/png attachment: image.png)
This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:12 UTC