What’s the difference between using NAV and DIV around Bootstrap 3 navbars?

In examples for the latest Bootstrap 3 navbars, I found various examples on the web where the outer navbar markup is

<div class="navbar navbar-default navbar-static-top">...</div>

and other examples are using

<nav class="navbar navbar-default" role="navigation">...</nav>

All the examples perform OK, and the documentation calls for NAV. Which leaves me wondering if a lot of examples on the web are version 2 leftovers that were not rewritten for version 3, or it is OK to use either surrounding markup.

Example

Leave a Comment