.container class provides a responsive fixed width container.container-fluid class provides a full width container, spanning the entire width of the viewportBy default, containers have left and right padding, with no top or bottom padding. Therefore, we often use spacing utilities, such as extra padding and margins to make them look even better.
For example, .pt-5 means "add a large top padding":
<div class="container p-5 my-5 border"></div>
<div class="container p-5 my-5 bg-dark text-white"></div>
<div class="container p-5 my-5 bg-primary text-white"></div>
You can also use the .container-sm|md|lg|xl classes to determine when the container should be responsive.
<div class="container-sm">.container-sm</div>
<div class="container-md">.container-md</div>
<div class="container-lg">.container-lg</div>
<div class="container-xl">.container-xl</div>
<div class="container-xxl">.container-xxl</div>