html - Why use list to do navigation menu instead of buttons? -


i have inspected many navigation menus on internet, , use lists instead of button. reason behind this? why use button? thank you.

there (at least) 2 reasons use lists. using lists can give idea of site's structure in terms of seo if people use either custom css or screen readers accessibility reasons. second , related 1 it's rather helpful when comes creating stylesheets. don't need come own way of nesting elements. use lists , go there. can focus on getting stylesheet right providing different styles different hierarchy levels, first, last, odd or list items.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -