# Text

Documentation and examples for common text utilities to control alignment, wrapping, weight, and more.

## Text alignment

Start aligned text on all viewport sizes.

Center aligned text on all viewport sizes.

End aligned text on all viewport sizes.

End aligned text on viewports sized SM (small) or wider.

End aligned text on viewports sized MD (medium) or wider.

End aligned text on viewports sized LG (large) or wider.

End aligned text on viewports sized XL (extra large) or wider.

End aligned text on viewports sized XXL (extra extra large) or wider.

    <!--text alignment-->
    <p class="text-start">Start aligned text on all viewport sizes.</p>
    <p class="text-center">Center aligned text on all viewport sizes.</p>
    <p class="text-end">End aligned text on all viewport sizes.</p>
    <p class="text-sm-end">End aligned text on viewports sized SM (small) or wider.</p>
    <p class="text-md-end">End aligned text on viewports sized MD (medium) or wider.</p>
    <p class="text-lg-end">End aligned text on viewports sized LG (large) or wider.</p>
    <p class="text-xl-end">End aligned text on viewports sized XL (extra large) or wider.</p>
    <p class="text-xxl-end">End aligned text on viewports sized XXL (extra extra large) or wider.</p>

## Text wrapping and overflow

This text should wrap.

    <!--wrapping overflow-->
    <div class="badge bg-primary text-wrap" style="width: 6rem;">
        This text should wrap.
      </div>

## Text transform

Lowercased text.

Uppercased text.

CapiTaliZed text.

     <!--Text transfrom-->
    <p class="text-lowercase">Lowercased text.</p>
    <p class="text-uppercase">Uppercased text.</p>
    <p class="text-capitalize">CapiTaliZed text.</p>

## Font size

.fs-1 text

.fs-2 text

.fs-3 text

.fs-4 text

.fs-5 text

.fs-6 text

    <!--Font size-->
    <p class="fs-1">.fs-1 text</p>
    <p class="fs-2">.fs-2 text</p>
    <p class="fs-3">.fs-3 text</p>
    <p class="fs-4">.fs-4 text</p>
    <p class="fs-5">.fs-5 text</p>
    <p class="fs-6">.fs-6 text</p>

## Font weight and italics

Bold text.

Bolder weight text (relative to the parent element).

Semibold weight text.

Medium weight text.

Normal weight text.

Light weight text.

Lighter weight text (relative to the parent element).

Italic text.

Text with normal font style

    <!--font weight italic-->
    <p class="fw-bold">Bold text.</p>
    <p class="fw-bolder">Bolder weight text (relative to the parent element).</p>
    <p class="fw-semibold">Semibold weight text.</p>
    <p class="fw-medium">Medium weight text.</p>
    <p class="fw-normal">Normal weight text.</p>
    <p class="fw-light">Light weight text.</p>
    <p class="fw-lighter">Lighter weight text (relative to the parent element).</p>
    <p class="fst-italic">Italic text.</p>
    <p class="fst-normal">Text with normal font style</p>

## Line height

This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.

This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.

This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.

This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.

    <!--line height-->
    <p class="lh-1">This is a long paragraph written to show how the line-height of
        an element is affected by our utilities. Classes are applied to the element
        itself or sometimes the parent element. These classes can be customized as
        needed with our utility API.</p>
    <p class="lh-sm">This is a long paragraph written to show how the line-height of
        an element is affected by our utilities. Classes are applied to the element
        itself or sometimes the parent element. These classes can be customized as
        needed with our utility API.</p>
    <p class="lh-base">This is a long paragraph written to show how the line-height
        of an element is affected by our utilities. Classes are applied to the
        element itself or sometimes the parent element. These classes can be
        customized as needed with our utility API.</p>
    <p class="lh-lg">This is a long paragraph written to show how the line-height of
        an element is affected by our utilities. Classes are applied to the element
        itself or sometimes the parent element. These classes can be customized as
        needed with our utility API.</p>

## Monospace

This is in monospace

     <!--monospace-->
    <p class="font-monospace">This is in monospace</p>

## Reset color

Secondary body text with a reset link .

     <!--Reset color-->
    <p class="text-body-secondary">
        Secondary body text with a <a href="#" class="text-reset">reset link</a>.
      </p>

## Text decoration

This text has a line underneath it.

This text has a line going through it.

This link has its text decoration removed

    <!--Text decoration-->
    <p class="text-decoration-underline">This text has a line underneath it.</p>
    <p class="text-decoration-line-through">This text has a line going through it.
    </p>
    <a href="#" class="text-decoration-none">This link has its text decoration
        removed</a>