Page 191 - Computer Software Application TP - Volume 1
P. 191
COMPUTER SOFTWARE APPLICATION - CITS
• Save the program as a .html file
• Open the html file with a web browser
• Verify the output.
2 Pagination - Active State
• Open the text editor
• Write the following codes
<!DOCTYPE html>
<html lang=”en”>
<head>
<title>Bootstrap Example</title>
<meta charset=”utf-8”>
<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>Pagination </h2>
<p> Add class .active to let the user know which page he/she is on </p>
<ul class=”pagination”>
<li class=”page-item”><a class=”page-link” href=”#”>Previous</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>1</a></li>
<li class=”page-item active”><a class=”page-link” href=”#”>2</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>3</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>Next</a></li>
</ul>
</div>
</body>
</html>
• Save the program as a .html file
• Open the html file with a web browser
• Verify the output.
176
CITS : IT & ITES - Computer Software Application - Exercise 47