bootstrap text warning code example

Example 1: bootstrap text color

<p class="text-primary">.text-primary</p>
<p class="text-secondary">.text-secondary</p>
<p class="text-success">.text-success</p>
<p class="text-danger">.text-danger</p>
<p class="text-warning">.text-warning</p>
<p class="text-info">.text-info</p>
<p class="text-light bg-dark">.text-light</p>
<p class="text-dark">.text-dark</p>
<p class="text-muted">.text-muted</p>
<p class="text-white bg-dark">.text-white</p>

Example 2: Bootstrap Text Colors Example

<p class="text-primary">It's primary text message</p>
        <p class="text-secondary">It's secondary text message</p>
        <p class="text-success">It's success text message</p>
        <p class="text-danger">It's danger text message</p>
        <p class="text-warning">It's warning text message</p>
        <p class="text-info">It's info text message</p>
        <p class="text-light bg-dark">It's light text message</p>
        <p class="text-dark">It's dark text message</p>
        <p class="text-muted">It's muted text message</p>

Example 3: bootstrap 4 text color

<p class="text-primary">Text with primary color</p>
<p class="text-secondary">Text with secondary color</p>
<p class="text-success">Text with success color</p>
<p class="text-danger">Text with danger color</p>
<p class="text-warning">Text with warning color</p>
<p class="text-info">Text with info color</p>
<p class="text-light bg-dark">Text with light color</p>
<p class="text-dark">Text with dark color</p>
<p class="text-muted">Text with muted color</p>
<p class="text-white bg-dark">Text with white color</p>

Example 4: bootstrap background

<div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>
<div class="p-3 mb-2 bg-secondary text-white">.bg-secondary</div>
<div class="p-3 mb-2 bg-success text-white">.bg-success</div>
<div class="p-3 mb-2 bg-danger text-white">.bg-danger</div>
<div class="p-3 mb-2 bg-warning text-dark">.bg-warning</div>
<div class="p-3 mb-2 bg-info text-white">.bg-info</div>
<div class="p-3 mb-2 bg-light text-dark">.bg-light</div>
<div class="p-3 mb-2 bg-dark text-white">.bg-dark</div>
<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>

Tags:

Css Example