Should I use
    s and
  • s inside my

前端 未结 8 2076
你的背包
你的背包 2020-12-02 10:41

The title pretty much explains it.

Now that we have a dedicated

相关标签:
8条回答
  • 2020-12-02 11:05

    the nav element and the list provide different semantical information:

    • The nav element communicates that we're dealing with a major navigation block

    • The list communicates that the links inside this navigation block form a list of items

    At http://w3c.github.io/html/sections.html#the-nav-element you can see that a nav element could also contain prose.

    So yes, having a list inside a nav element does add meaning.

    0 讨论(0)
  • 2020-12-02 11:06

    There is a really detailed post on CSS Tricks about this exact question. It is obviously a hotly debated issue; the post has over 200 comments.

    Navigation in Lists: To Be or Not To Be (CSS Tricks, Jan 2013)

    0 讨论(0)
提交回复
热议问题