You’ve given your collapsed navigation bar a different id than the one you are targetting in your collapse toggle.The data-target in your button is looking for an id to target. It’s looking for #navbar. However, you’ve given your menu the id=“navlinks”.