The Wayback Machine - https://web.archive.org/web/20240128095120/https://www.geeksforgeeks.org/bootstrap-5-typography-blockquotes/
Open In App
Related Articles

Bootstrap 5 Typography Blockquotes

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

Bootstrap 5 Typography Blockquotes is used to display the long quotations (a section that is quoted from another source). It changes the alignment to make it unique from others. To use this class we must use the HTML blockquote tag for better results.

Typography Blockquotes: For quoting blocks of content, we can add class blockquote. 

  • Naming a source: Blockquote can be wrapped inside <fiin and provided a footer.
  • Alignment: This is similar to the text-alignment class, which is used to set the alignment of the text of blockquote.

Typography Blockquotes Class:

  • blockquote: It is used to include the bootstrap 5 blockquote style in the content.

Syntax

<blockquote class="blockquote">
    <p>...</p>
</blockquote>

Below examples illustrate the Bootstrap 5 Typography Blockquotes:

Example 1: In this example, we will learn about naming a source using blockquote.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- Bootstrap CDN Link -->
    <link href=
          rel="stylesheet" 
          integrity=
"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
          crossorigin="anonymous">
  
</head>
  
<body class="m-3">
    <center>
        <h1 class="text-success">
            GeeksforGeeks
        </h1>
        <strong>Bootstrap 5 Typography Blockquotes</strong>
    </center>
    <br>
    <figure>
        <!-- Bootstrap 5 blockquote class used -->
        <blockquote class="blockquote">
            <p>
                A Computer Science portal for geeks. It contains
               well written, well thought and well explained computer
               science and programming articles.
            </p>
        </blockquote>
        <figcaption class="blockquote-footer">
            Geeksforgeeks
        </figcaption>
    </figure>
</body>
</html>


Output:

Bootstrap 5 Typography Blockquotes

Example 2: In this example, we will see an example where two figure elements are used, one of them will use bootstrap 5 typography blockquote classes, and another one will be without the classes so you can differentiate the impact of the class.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- Bootstrap CDN Link -->
    <link href=
          rel="stylesheet" 
          integrity=
"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
          crossorigin="anonymous">
  
</head>
  
<body class="m-3">
    <center>
        <h1 class="text-success">
            GeeksforGeeks
        </h1>
        <strong>Bootstrap 5 Typography Blockquotes</strong>
    </center>
    <br>
  
    <strong>Bootstrap 5 blockquote class used</strong>
    <figure>
        <!-- Bootstrap 5 blockquote class used -->
        <blockquote class="blockquote">
            <p>
                A Computer Science portal for geeks. It contains
               well written, well thought and well explained computer
               science and programming articles.
            </p>
        </blockquote>
        <figcaption class="blockquote-footer">
            Geeksforgeeks
        </figcaption>
    </figure>
    <br>
    <strong>Bootstrap 5 blockquote class not used</strong>
    <figure>
        <!-- Bootstrap 5 blockquote class not used -->
        <blockquote class="">
            <p>
                A Computer Science portal for geeks. It contains
               well written, well thought and well explained computer
               science and programming articles.
            </p>
        </blockquote>
        <figcaption class="">
            Geeksforgeeks
        </figcaption>
    </figure>
</body>
  
</html>


Output:

Bootstrap 5 Typography Blockquotes

Bootstrap 5 Typography Blockquotes

References: https://getbootstrap.com/docs/5.0/content/typography/#blockquotes


Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Looking for a place to share your ideas, learn, and connect? Our Community portal is just the spot! Come join us and see what all the buzz is about!


Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 22 Nov, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials