Hi everyone! I was wondering, are div elements similar to brackets in calculations? I have just done the “Create a custom heading” task where you have to nest a h2 and image element within a
<div class="row"> element and due to the nature of the code I already had one closing
</div> tag (i don’t know if tag is the right terminology so sorry if that doesn’t make sense). So anyway, before I could basically close everything up in another
</div> tag the code seemed to work.
Basically can two separate opening
<div> tags share the same closing
</div> tag or should I put two closing div tag next to each other? I don’t know if there is some kind of best practise in this case. Hopefully you can understand this question.
Thanks in advance.