Nav and href | Sololearn: Learn to code for FREE!

+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>.

3/7/2021 6:20:00 AM

Destin Smith

2 Answers

New Answer

+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.

0

can you give me an example?