Why use list to do navigation menu instead of buttons?

前端 未结 3 936
忘掉有多难
忘掉有多难 2020-12-21 05:51

I have inspected many navigation menus on the internet, and they often use lists instead of a button. What is the reason behind this? Why use the button? Thank you.

3条回答
  •  失恋的感觉
    2020-12-21 06:18

    Generally lists are used for navigation items in HTML because they are presenting a list of navigation options to the user.

    HTML5 offers a bit more semantic precision using menu and nav

提交回复
热议问题