how to use bootstrap 5 font bold with example

How to use bootstrap 5 font bold with example


In this section, we'll see how to use font bold in Bootstrap 5.

Starting Bootstrap 5 Structure with CDN

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Bootstrap 5 Font Bold</title>
      href="[email protected]/dist/css/bootstrap.min.css"
    <!-- content -->
      src="[email protected]/dist/js/bootstrap.bundle.min.js"

Bootstrap 5 Font Bold

You can use fw-bold bootstrap 5 class to use Font Bold.

<p class="fw-bold">This is a bold text using Bootstrap 5</p>
bootstrap 5 fw-bold

bootstrap 5 fw-bold

Bold Text within a Heading

<h1>Welcome to <span class="fw-bold">Bootstrap 5</span> Tutorial</h1>
bootstrap 5 font bold with span tag

bootstrap 5 font bold with span tag

List Items with Bold Text

    <li class="fw-bold">First Bold Item</li>
    <li>Second Item</li>
    <li class="fw-bold">Third Bold Item</li>
bootstrap 5 font bold

bootstrap 5 font bold

Responsive Text with Bold and Normal Weights

<p class="fw-bold d-none d-md-block">This text is bold on medium devices and larger.</p>
<p class="fw-normal d-block d-md-none">This text is normal on small devices.</p>
bootstrap 5 responsive font bold

bootstrap 5 responsive font bold