The container class creates a fixed-width container that changes width at different breakpoints but remains centered. The container-fluid class always spans the full width of the viewport.
container-fluid instead of container in Bootstrap?<div class="container">Content</div> <div class="container-fluid">Content</div>
The container-fluid class always stretches across the entire viewport width. The container class has a max width and is centered.
container class?Bootstrap applies horizontal padding directly on the .container class to create space inside the container edges.
The container-md class is fluid (full width) below the medium breakpoint and fixed width at medium and above.
Adding role="main" to the container that holds the main content helps screen readers quickly locate the primary page content.
