1. Describe how to build a responsive navbar that collapses into a toggler on mobile.
Start with the navbar element and add .navbar-expand followed by your chosen breakpoint. Add a brand, a toggler button with data-bs-toggle='collapse', and data-bs-target linking to the collapsible menu. Wrap the menu links inside a div with the class .collapse and the same id. On small screens the menu hides behind the toggler, and it expands automatically at the defined breakpoint.
<nav class='navbar navbar-expand-md navbar-light bg-light'> <a class='navbar-brand' href='#'>Brand</a> <button class='navbar-toggler' data-bs-toggle='collapse' data-bs-target='#mainNav'> <span class='navbar-toggler-icon'></span> </button> <div id='mainNav' class='collapse navbar-collapse'> <ul class='navbar-nav ms-auto'> <li class='nav-item'><a class='nav-link' href='#'>Home</a></li> </ul> </div> </nav>