xxxxxxxxxx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> <!-- Replace with your desired font -->
<style>
body {
font-family: 'Roboto', sans-serif; /* Replace with your desired font */
}
</style>
</head>
<body>
<h1>Hello, Bootstrap 4!</h1> <!-- Text will be displayed in the specified font -->
</body>
</html>
xxxxxxxxxx
/* Headings font */
h1, h2, h3, h4, h5, h6 {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* Body text font */
body {
font-family: Arial, sans-serif;
}
xxxxxxxxxx
<!-- You need to include the Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- HTML content -->
<div class="container">
<h1 class="display-4">Hello, Bootstrap!</h1>
<p class="lead">This is a lead paragraph with larger font size.</p>
<p class="text-muted">This is a muted paragraph with smaller font size.</p>
<p>This is a regular paragraph.</p>
</div>