Why we always use
    to make Navigation why not
      ?

前端 未结 7 1211
北荒
北荒 2020-12-17 11:05

Why do we always use

    to make navigation why not
      ? While we can use both technically.

7条回答
  •  醉话见心
    2020-12-17 11:17

    There isn’t much practical difference between the two.

    Using

      suggests that it’s important the list remain in the same order. For most navigation on the web, the order of the navigation items doesn’t matter.

      An exception would be navigation within a process, e.g. if you’re taking the user through a 3-step purchase process, and are giving them navigation to move to any step. An ordered list would be appropriate there, as the steps come one after the other, e.g.

      1. Payment details
      2. Delivery address
      3. Summary

      Note that in HTML5, you can and should wrap any major navigation block, whether it uses

        ,
          or something else, in the
提交回复
热议问题