1<p class="text-primary">.text-primary</p>
2<p class="text-secondary">.text-secondary</p>
3<p class="text-success">.text-success</p>
4<p class="text-danger">.text-danger</p>
5<p class="text-warning">.text-warning</p>
6<p class="text-info">.text-info</p>
7<p class="text-light bg-dark">.text-light</p>
8<p class="text-dark">.text-dark</p>
9<p class="text-muted">.text-muted</p>
10<p class="text-white bg-dark">.text-white</p>
1<div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>
2<div class="p-3 mb-2 bg-secondary text-white">.bg-secondary</div>
3<div class="p-3 mb-2 bg-success text-white">.bg-success</div>
4<div class="p-3 mb-2 bg-danger text-white">.bg-danger</div>
5<div class="p-3 mb-2 bg-warning text-dark">.bg-warning</div>
6<div class="p-3 mb-2 bg-info text-white">.bg-info</div>
7<div class="p-3 mb-2 bg-light text-dark">.bg-light</div>
8<div class="p-3 mb-2 bg-dark text-white">.bg-dark</div>
9<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
1use something like :
2<div class="container alert alert-success">
3 <div class="row">
4 <div class="col">I'm your content inside the grid!</div>
5 </div>
6</div>
1<style type="text/css">
2 body { background: navy ; } /* Adding !important forces the browser to overwrite the default style applied by Bootstrap */
3</style>