making a website that utilizes divs with a background-image:
(so basically a picture) with a div nested in that that will display text over the picture.
The text and picture divs are both links that would go to the same place. I want my users to be able to click anywhere on the text or picture to navigate away from the page.
Instead of using using two tags that will link to the same thing in the same line of code, I noticed that I can put two divs, both the picture and the text, inside of the same tag and Chrome allows it.. but I don't know how support is on this kind of thing in other browsers.
Here's an example of what I'm doing:
<a href="https://theartofmikeyjoyce.com/">
<div class="cell E4">
<div class="text">MIKEY<br/>
<p>IN THE CLUB II</p>DIGITAL COLLAGE
</div>
</div>
</a>
Is this canon?