Bootstrap provides a number of built-in classes that you can use to style typography on a webpage. These classes allow you to control the font size, font weight, line height, and other aspects of the text on your page.
To use Bootstrap's built-in classes, simply add the appropriate class to the element that you want to style. For example, to increase the font size of a heading, you would add the .h1-responsive class to the <h1> element.
Here is a list of some of the most commonly used Bootstrap typography classes:
.lead - This class styles text as a lead paragraph, which is typically used for longer blocks of text.
.small - This class styles text as a small font size.
.text-muted - This class styles text as a muted font color.
.text-primary - This class styles text as the primary font color, which is typically blue.
.text-danger - This class styles text as the danger font color, which is typically red.
.text-info - This class styles text as the info font color, which is typically blue.
.text-success - This class styles text as the success font color, which is typically green.
.text-warning - This class styles text as the warning font color, which is typically orange.
You can also use Bootstrap's built-in classes to control the font family, font weight, and line height of the text on your page. To do this, use the font-family, font-weight, and line-height properties, respectively.
For example, to set the font family to Arial, the font weight to bold, and the line height to 1.5, you would use the following CSS:
Bootstrap's built-in typography classes provide a great way to quickly and easily style the text on your web pages. By using these classes, you can create a consistent and visually appealing typography style for your website.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Bootstrap provides a number of built-in classes that you can use to style typography on a web page. These classes allow you to control the font size, font weight, line height, and other aspects of the text on your page.
To use Bootstrap's built-in classes, simply add the appropriate class to the element that you want to style. For example, to increase the font size of a heading, you would add the .h1-responsive class to the <h1> element.
Here is a list of some of the most commonly used Bootstrap typography classes:
You can also use Bootstrap's built-in classes to control the font family, font weight, and line height of the text on your page. To do this, use the font-family, font-weight, and line-height properties, respectively.
For example, to set the font family to Arial, the font weight to bold, and the line height to 1.5, you would use the following CSS:
Code snippet
Bootstrap's built-in typography classes provide a great way to quickly and easily style the text on your web pages. By using these classes, you can create a consistent and visually appealing typography style for your website.