Program 2
Program 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap 5.0 Text and Fonts Demo</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet">
</head>
<body>
<div class="container mt-5">
<h1>Text Colors</h1>
<p class="text-primary">Primary text color</p>
<p class="text-secondary">Secondary text color</p>
<p class="text-success">Danger text color</p>
<p class="text-danger">Success text color</p>
<p class="text-warning">Warning text color</p>
<p class="text-info">Info text color</p>
<p class="text-light bg-dark">Light text color on dark background</p>
<p class="text-dark">Dark text color</p>
<p class="text-muted">Muted text color</p>
<p class="text-white bg-dark">White text color on dark background</p>
<h1>Font Weight</h1>
<p class="fw-light">Light font weight</p>
<p class="fw-normal">Normal font weight</p>
<p class="fw-bold">Bold font weight</p>
<h1>Font Style</h1>
<p class="fst-italic">Italic font style</p>
<p class="fst-normal">Normal font style</p>
</div>
This code creates a web page demonstrating various text and font properties provided by Bootstrap
5.0 framework classes. Each section showcases different classes available for styling text colors,
font weights, and font styles.