![]() |
VOOZH | about |
Bootstrap 5 Background is used with the help of the keyword bg. It offers various colors like primary, success, info, warning, danger, secondary, dark, and light.
The below examples illustrate the Bootstrap 5 Background:
Example 1: The following code demonstrates different background Color classes of Bootstrap 5.
Output:
Example 2: The following code demonstrates different background Gradient classes.
Output:
Reference: https://getbootstrap.com/docs/5.0/utilities/background/