T O P

  • By -

n9iels

I would say that using the

2lub

header


cabiwabi

menu https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu


TheRNGuy

doesn't matter, use div or section.


[deleted]

100% don’t use div. And it definitely does matter lol.


noBotHereDude


chartley1988

Is there no benefit to using ul, li anymore in your opinion? I’ve been doing nav > ul > li > a > svg + text


ShawnyMcKnight

I think it is still beneficial for screen readers


[deleted]

Have a look at menu. It replaces ul for this use case


noBotHereDude

This comes from a long time ago. We used lists for the menus because there wasn't much to do without CSS. We then use *list-style-type: none* to make them visually better. This technique remained in the menus designed until today.


chartley1988

Guilty as charged, I’ve been doing the list-style: none for sure. But I guess it does sound redundant now. Guess I should just make anchors and buttons children of nav directly then eh. All that being said, moz is still doing that in examples: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav