Bootstrap Custom Fonts
Bootstrap allows you to easily customize the fonts used in your website to give it a unique look and feel. In this guide, we'll show you how to customize the fonts in Bootstrap.
Syntax
To customize the fonts in Bootstrap, you need to include the following CSS code in your HTML file:
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
body {
font-family: 'Open Sans', sans-serif;
}
In the above example, we're importing the "Open Sans" font from Google Fonts and setting it as the font family for the body
element.