They won’t be targeting the same element in any case. The latter will be a direct child
nav that is outside of the
<nav> <a></a> <ul> <li> <a></a> </li> </ul> </nav>
But maybe you can provide some HTML markup, the question’s not exactly clear. I’m assuming you’re not actually using
button elements for example but that that was a figure of speech.