Design comparison
SolutionDesign
Solution retrospective
I used a <nav> tag for the links. Is it better thean a <ul> tag?
Community feedback
- @perfidevPosted 10 months ago
Hi, you should use the <nav> with <ul>.
<nav> <ul> <li><a href="#">Item 1</a></li> <li><a href="#">Item 2</a></li> <li><a href="#">Item 3</a></li> </ul> </nav>
Marked as helpful0 - @pranavpatilgithubPosted 10 months ago
It will be easier for styling in CSS if you use just <a> anchor tags inside <div>. Later you just need to apply basic flexbox properties. I hope this help you out. Thank you !
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord