0

hello everybody I want to know there's any difference if I used (list <ul> tag) or (<spane> tag) to create menu some developer

hello everybody I want to know there's any difference if I used (list <ul> tag) or (<spane> tag) to create menu some developer use <nav> with <a> tag only? Should be used <nav> instead <div> and what's the difference? <body> <div id="menu"> <spane ><a href="#"> Home</a></spane> <spane > <a href="#"> Translated Articals </a></spane> <spane> <a href="#"> Projects </a></spane> <spane ><a href="#"> Articals </a></spane> <spane > <a href="#">Books</a></spane> <spane><a href="#"> Club </a></spane> </div> </body>

29th Mar 2020, 10:24 AM
Soumaiya Anwer
Soumaiya Anwer - avatar
1 Respuesta
+ 3
nav is semantic, for SEO https://developer.mozilla.org/en-US/docs/Glossary/Semantics it's not spane, it is span ul li preferred because of screen reader https://stackoverflow.com/a/549692/12942687
29th Mar 2020, 10:31 AM
Gordon
Gordon - avatar