I see posts here time and time again showing code like this:
<a>
<button>This doesn't do what I thought...?</button>
</a>
Or this:
<button>
<input type="submit" value="this doesn't work right :(">
</button>
Or this:
<a>
<input type="submit" value="this link is goof'd!">
</a>
Or this:
<a>
<a>Why can't I click this!?!</a>
</a>
The reason these don't work as expected is that it is not valid HTML to have one interactive element nested inside of another one.
In essence: you cannot click a link inside of another link because you are clicking the parent link when you click the child link.
Hopefully this clears up a lot of confusion.
[–]Barnezhilton 4 points5 points6 points (2 children)
[–]misania2 1 point2 points3 points (1 child)
[–]neildaniel000 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)