Social Media Link Semantics | NAV or not
Hello!
It's very common for a footer or somewhere on a hompeage to have a list of social-media links. I was wondering if it is semantically correct to wrap these in a nav tag or if the nav element is only for internally navigation.
Option 1?
<nav>
<ul>
<li>
<a href="">ETC</a>
</li>
</ul>
</nav>
Option 2?
<ul aria-label="social media links">
<li>
<a href="">ETC</a>
</li>
</ul>
Or more options 🙂
Thanks for the help!
3 Replies
I would have thought that no, external links shouldn’t be within a nav tag.
As an aside, and I know that many will think differently, I would also question the need to place the nav links within a ul but that is a different debate….
I know it's besides the OP's question, but no, you don't need to use an ul/ol in a nav as it already has a list semantic.