Should I use
    s and
  • s inside my

前端 未结 8 2109
你的背包
你的背包 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.

提交回复
热议问题