+ 1

Nav and href

What is the different between <nav> and href attributes? I know href is used for <a href for websites, but it’s seems to me that href can do the same as <nav>.

7th Mar 2021, 6:20 AM
Destin Smith
2 Respostas
+ 1
In simple words, nav is a bunch of a tags whereas a tags are used for hyperlinks in which you use href attribute which is links destination href attribute can be only used in a and base tag not in nav tag.
7th Mar 2021, 6:31 AM
Sharique Khan
Sharique Khan - avatar
0
can you give me an example?
7th Mar 2021, 9:15 PM
Destin Smith