In Bootstrap, container is used to set the content's margins dealing with the responsive behaviors of your layout. It contains the row elements and the row elements are the container of columns (known as grid system).
The container class is used to create boxed content.
There are two container classes in Bootstrap:
See the basic layout of a container:
Bootstrap container exampleTest it Now