To build a basic horizontal menu, use the .nav class on a <ul> apply .nav-item to each <li> and add .nav-link to the anchor tags inside.
Use the .justify-content-center class to center the navigation items, or .justify-content-end to align them to the right.
Apply the .flex-column class to turn the navigation into a vertical layout.
Use the .nav-tabs class to style the navigation as tabs. Apply the .active class to highlight the current tab. For toggleable tabs, refer to the final example on this page.
Apply the .nav-pills class to style the navigation menu as pill-shaped tabs. For toggleable functionality, check the last example on this page.
The same code works for pills; just replace the data-toggle attribute with data-toggle="pill".