Page 202 - Computer Software Application TP - Volume 1
P. 202
COMPUTER SOFTWARE APPLICATION - CITS
<h2>Colored Spinners</h2>
<div class=”spinner-border”></div>
</div>
</body>
</html>
• Save the program as a .html file
• Open the html file with a web browser
• Verify the output.
2 Colored Spinners
• Open the text editor
• Write the following codes
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<meta name=”viewport” content=”width=device-width, initial-scale=1”>
<link href=https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css rel=”stylesheet”>
<script src=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js”></script>
</head>
<body>
<div class=”container mt-3”>
<h2>Colored Spinners</h2>
<div class=”spinner-border text-muted”></div>
<div class=”spinner-border text-primary”></div>
<div class=”spinner-border text-success”></div>
<div class=”spinner-border text-info”></div>
<div class=”spinner-border text-warning”></div>
<div class=”spinner-border text-danger”></div>
<div class=”spinner-border text-secondary”></div>
<div class=”spinner-border text-dark”></div>
<div class=”spinner-border text-light”></div>
</div>
</body>
</html>
• Save the program as a .html file
• Open the html file with a web browser
• Verify the output.
187
CITS : IT & ITES - Computer Software Application - Exercise 47