do we always need to have container in bootstrap code example

Example 1: container in bootstrap

Containers
Containers are the most basic layout element in Bootstrap and are required when using our default grid system. Choose from a responsive, fixed-width container (meaning its max-width changes at each breakpoint) or fluid-width (meaning it’s 100% wide all the time).
While containers can be nested, most layouts do not require a nested container.

Syntax:

Example 2: bootstrap container

Our default .container class is a responsive, fixed-width container, meaning its max-width changes at each breakpoint.

Tags:

Misc Example