css - whether it is better to use <nav> with <li> <a>, or just <nav> <a>? -
<nav> <a href="#">home</a> <a href="#">kontakt</a> <a href="#">jovan</a> </nav> or
<nav> <ul> <li> <a href="#">home</a> </li> </ul> </nav> which better? when nav , <a> or latter. in first should not placed in css <inline>
from point of view, first solution nicest 1 since menu navigation, uses less code , (as far know) seo second solution.
<nav> <a href="#">home</a> <a href="#">kontakt</a> <a href="#">jovan</a> </nav> if use other elements inside nav, ul, ol, h1, table(!) or whatever, should semantically correct. if menu list it's fine use ul. if want add elements inside make easier style, use div and/or span.
update
after discussion in comments: in cases menu list, ul method great choice. if use ul easier screen readers navigate, according steve
Comments
Post a Comment