I want to nest span
and a
tags. Should I
<span>
inside <a>
<a>
inside <span>
3 - It doesn't matter.
BUT, I tend to only use a <span>
inside an <a>
if it's only for a part of the contents of the tag i.e.
<a href="#">some <span class="red">text</span></a>
Rather than:
<a href="#"><span class="red">some text</span></a>
Which should obviously just be:
<a href="#" class="red">some text</a>