+ 3

Does <div> tag can contain <nav> tag?

I wanted to know whether it is true to nest <nav> tag in <div> tag?

4th Jan 2020, 5:08 AM
Rajat Porwal
3 Antworten
+ 3
The answer to this is yes. You can contain a <nav> inside <div>. However, this is not how we structure HTML pages. You should try to follow the main structure. It will help you as your page grows to maintain the code throughout. But nothing is really stopping you.
4th Jan 2020, 5:48 AM
Ivan
Ivan - avatar
4th Jan 2020, 5:41 AM
Avinesh
Avinesh - avatar
0
hello
5th Jan 2020, 10:20 AM
Saimov Elyor
Saimov  Elyor - avatar